Things to consider when having offline flow - Deepstash
Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

Machine Learning With Google

Discover 95 similar ideas in

It takes just

14 mins to read

Things to consider when having offline flow

  1. The user should be notice if the app si offline and be informed in a screen if that feature is not available
  2. The offline features should be synced with the server once back online

4

154 reads

MORE IDEAS ON THIS

Post data request offline

When trying to make a POST, the local state should be updated and Redux should check the internet connection, to see if should make the api request or add it to the queue.

Notice: The modified data should be persisted, so there won't be any discrepancies between sessions

4

18 reads

Sync offline features with the server

When back online, you should sync the server with the offline actions. To do so, you should maintain a queue with all the API requests, for executing when the connection will be restored. This queue should be persisted in redux, to remain after several offline sessions

5

28 reads

Fetch data request

If there is no internet connection, the data should be extracted from the local storage. Otherwise, a fetch request will be made, including a timestamp, with the last sync with the server. The server will than reply with the updated data and the timestamp will be updated, representing a checkpoin...

4

23 reads

The Architecture

To implement the concepts presented above, you need some help from libraries like Redux-Persist and Netinfo. Redux-Persist will help when launching the app, to populate the Redux with data from the previous session, checking the black and white lists. Netinfo can be used to check the status of th...

4

18 reads

CURATED FROM

IDEAS CURATED BY

teni

Normal person with peculiar dreams @unkl's protégé @cristianmezei's disciple

Related collections

Other curated ideas on this topic:

Online and offline networks

There are four ways in which online networks differ from offline networks.

  • Scale: It is possible to interact with a huge number of other individuals online.
  • Communality: Online networks facilitate large-scale cooperation.
  • Sp...

Things to consider

  • There is no universally perfect note-taking app, and no note-taking app will do the work for you.
  • You can use an intersection of several apps if you need to use two or more of them in combination to achieve your goals.
  • However, it’s better to...

1. The user is an idiot

1. The user is an idiot

The user is not an expert. My doc doesn't require me to know the difference between low-density and high-density lipoproteions. 

Don't assume user should know what kind of browser they use or what is the best flow to use the app. 

But yes, no matter how much you think of it, sometimes...

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates