redux-persist/autoRehydrate sub state for key "app" modified, skipping autoRehydrate
See original GitHub issueI have a substate called ‘app’ and my reducer does not listen on the REHYDRATE action type but it has an initial state.
Despite this, I get the following logs: redux-persist/autoRehydrate sub state for key "app" modified, skipping autoRehydrate
.
What does it mean in detail and how can it be resolved?
Relevant code: https://github.com/rt2zz/redux-persist/blob/master/src/autoRehydrate.js#L60
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (5 by maintainers)
Top Results From Across the Web
No results found
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
@jeffreycrow this leads me to believe to that you are mutating state by default in your reducer.
e.g. if you use switch statements the default case should always return state unmodified, i.e.
This will preserve object equality without requiring deep compares
Your Recommended Additions(set
config.debug = true
to get useful logging ) is very useful. I could not find my issue until open debug mode. Thanks, it’s great.