rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.94k stars 866 forks source link

Rehydrate twice? #1274

Closed brandoncc closed 3 years ago

brandoncc commented 3 years ago

Hello,

Thanks for this awesome library!

I am trying to debug a user's experience, and having some trouble. I have the user's persisted state, and I would like to "import" that state locally. I am trying to change the value in localStorage, then have the website rehydrate that value into redux. Unfortunately, redux-persist persists its data when I refresh, which loses my manual localStorage changes.

Is there a "recommended" way to do this?

Thanks again.

brandoncc commented 3 years ago

Scratch that, I was messing up the data format when I changed the value in localStorage. Sorry for the trouble!