You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented redux persistence using this library based on the legacy usage examples in https://github.com/zewish/redux-remember/blob/master/LEGACY-USAGE.md and I get no payload in REMEMBER_REHYDRATED in my reducer. Payload is available in REMEMBER_PERSISTED case. I am trying this in React Native with AsyncStorage. Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered:
Hey @PunainenAurinko, this is by design. If you read the documentation carefully, you will see there is no payload for the REMEMBER_REHYDRATED action. Your state gets injected directly into the “state” variable instead, so you should see your restored reducer state there. You are of course free to only use part of the restored state and keep everything else from your “default state” (before the rehydration) and this should be pretty straight-forward. Does the documentation need an improvement? If that's the case feel free to do a PR fixing anything that is not clear enough.
I implemented redux persistence using this library based on the legacy usage examples in https://github.com/zewish/redux-remember/blob/master/LEGACY-USAGE.md and I get no payload in REMEMBER_REHYDRATED in my reducer. Payload is available in REMEMBER_PERSISTED case. I am trying this in React Native with AsyncStorage. Any help would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: