Closed jashelton closed 5 years ago
Anybody has an idea on what goes wrong there? I'm having almost the same set-up and exactly the same problem.
LE: for the time being I downgraded to 5.6.12 and seems to be working fine.
Also having the same issue
Also having the same issue but I'm also on v4.10.2. I can see that values get written to localStorage
and they are updated when they should be. But on page reload it seems like the values do not get read/set in the redux store
is this fixed? Why is it close?
@kopax I was also having this issue today where I had an array of objects and the updated state wouldn't persist when removing and item from this array. I realized after some debugging that I was mutating existing objects. After following this advice https://github.com/rt2zz/redux-persist/issues/897#issuecomment-452200271 I was able to fix it.
Also having the same issue
I am trying to persist two pieces of the store. One being auth info and the other being user preferences.
const initialState = { auth: {}, preferences: defaultUserPreferences };
When the use logs in, auth is updated and persists. Later, I ask the user for push notification permissions and then I want to updateauth.push_token: null
to contain the push_token. The problem is that it doesn't persist.Also, I set default user preferences for each user which is fine, but as the user updates preferences, the new preferences aren't persisted.
My main confusion is why auth is persisting initially but if it's updated and there is a hard refresh, I lose the updates.