android - How long does redux state persist in memory in react native -


i trying understand how manage redux state in react-native app. in particular, trying work out happens when app minimized or device turned off.

with knowledge can work out best how persist state, , prepare illegal states may arise redux state being reset.

is fair assumption make if redux state reset, entire app restart (and therefore initialization of redux store called again?).

is fair assumption make if redux state reset, entire app restart

this assumption not true, inverse is. redux state can reset during runtime if there code via reset action or otherwise.

however if app shut down, , code re-runs loaded default redux state.

asyncstorage (in native) / localstorage web, used in conjunction redux in order persist state across app crashes / browser sessions.

you can set asyncstorage strategy redux-persist middleware (or write own)


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -