autoRehydrate no longer working after upgrading 0.30 to 0.31
See original GitHub issueI just upgraded my app from 0.30 to 0.31 and noticed the autoRehydrate feature is no longer working. I have set up my store like so:
const store = createStore(rootReducer, middleware, autoRehydrate());
And i was ‘logging’ the REHYDRATE action like so:
export default function persist(state = initialState, action) {
switch (action.type) {
case REHYDRATE:
return {
...state,
storageLoaded: true,
};
default:
return state;
}
}
But since upgrading the REHYDRATE action stopped ‘firing’ and no data is persisted between reloads of the app. I’m using the asyncStorage storage engine.
Is this a known issue? Should i reconfigure anything after upgrading?
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
redux-persist autoRehydrate not defined in new version
As I understand, within new update there is no more autoRehydrate . But I can't handle, how to update the code so it...
Read more >autoRehydrate not working after production minifcation #362
There's an odd behavior happening with my app now, if I build the package using NODE_ENV=development, everything works as it's supposed to ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

yes it did! simple upgrade fixed it.
@rt2zz strangely enough i still see the issue on android but only with remote debugging turned on; when i turn remote debugging off REHYDRATE works fine and the app loads. When i have remote debugging on REHYDRATE never fires. I assume this is also something in my configuration then since you said people are running 0.31 without issues but i just wanted to double check if that rings any bells for you…