Handling Offline Actions in React Native
Spencer Carli

Thanks Spencer, that was a great read! I think in mobile apps handling the various states that you can get to add a lot of overhead. 
In my company we are building some sort of messaging app and we want the user to be able to send messages even when he is offline that will later sync with the server. This proved to be a lot of overhead because even if we waited for online state sometimes the user closes the app before he goes online again and the messages are lost. 
I recently created a library to deal with these issues, it’s meant to persist functions and run them in various states, the functions are persisted in storage in case they did not finish and re-run after various states including connection regain, app restart or just simple retries. I would love your opinion! https://github.com/GabiNir/react-native-persistent-job

Like what you read? Give Gabi Nir a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.