question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

redux-persist/autoRehydrate sub state for key "app" modified, skipping autoRehydrate

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
rt2zzcommented, Feb 6, 2017

@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.

//...
default: 
  return state

This will preserve object equality without requiring deep compares

0reactions
purplepengcommented, Nov 20, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found