Handling Offline Mode in React Native - Deepstash
  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
  3. ...

STASHED IN:

3

Handling Offline Mode in React Native

around25.com

STASHED IN:

0 Comments

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 queu...

2

STASHED IN:

3

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...

STASHED IN:

3

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 modifi...

STASHED IN:

3

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 serv...

STASHED IN:

3

Deepstash helps you become inspired, wiser and productive, through bite-sized ideas from the best articles, books and videos out there.

GET THE APP: