-
Notifications
You must be signed in to change notification settings - Fork 863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native - Android dev mode - rehydrated called after timeout #784
Comments
Type
One thing you may want to try is changing the storage engine to |
Oh wow thanks very much for that awesome reply!! Those linked issues are super helpful. It's ok I don't want to move to a seperate storage engine just for dev mode. This only happens in dev mode correct? (from my experience it seems so). If its not "just in dev mode" then for sure ill switch engine. |
In my experience it only occurs in remote debugging mode. I have quite a large production app running with the latest version of redux-persist using AsyncStorage on Android and there's been no problems so far besides not being able to effectively debug it while using the remote debugger. |
Sincerest thanks @jamsch for your replies!! Should I close this topic out do you think? I thought it would be helpful for people searching in redux-persist repo first as thats where the error is happening. But after seeing those issues it makes total sense to be in react-native repo's |
We can just leave the package maintainer to decide ;) |
Haha good idea. Thanks again!! And major thanks to package maintainer for such a superb lib that is redux-persist!! |
@Noitidart Does it work well on react-native ? (iOS/Android) I can see many open issues regarding native, I am just not sure if it is that superb. |
@kopax yeah it works perfectly on react-native. Just ignore the dev issue. Any issue that is easy to bear with can be overlooked. Simple restart of the app when it hangs is all it takes to fix dev. And its perfect in production. |
This question is for other react-native devs on Android that come across this question.
Android dev mode is horrible with timeouts and event callbacks on proper time. Here is a quote:
https://github.com/archriss/react-native-snap-carousel#important-note-regarding-android
Due to this, while in dev mode only, I get:
And my whole store gets wiped out.
Do you react-native on android dev have any experience with a work around for this?
The text was updated successfully, but these errors were encountered: