rt2zz / redux-persist

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

Inbound state deletes store state? #1194

Closed njradford closed 4 years ago

njradford commented 4 years ago

I'm looking for a way to blacklist nested values on the way out to the local store. I'm achieving this currently using a transform, which I would expect to ONLY take effect when writing to the localstorage not writing to the redux store. I just need to say "please delete this singular nested value when writing to localstorage" however the value is deleted in the redux store as well when I null it out in the inbound transform.

njradford commented 4 years ago

NVM: I was mutating state directly. Sorry for the noise.