-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with redux-persist v5 #7
Comments
@giacomocerquone did you find a solution to this ? |
I have the same problem here for "redux-persist": "5.4.0". Can you please help to find a solution |
@ritz078 no, for now I made myself happy using handmade RESET actions |
Yes @giacomocerquone, I make it by hand as well and it works. But it would be better if this package could handle it itself as it has to do |
I'm not using Hope it helps! |
When we reset our state and purge storage, state is not persisted anymore - running persistor.persist() solves this issue. Example code: export function logout() {
return async dispatch => {
dispatch({ type: 'RESET' })
await persistor.purge()
await persistor.persist()
}
} |
I had the same issue.
I hope this helps. |
Hi, I believe this package has some issues with redux-persist v5. Basically it's like it resets the state but the redux-persist package for some reason doesn't write the updated state to the storage system (asyncstorage in my situation).
But if I create a reset action by hand (that brings the state to its initial state), it works correctly. I'm integrating your package like this:
What may be causing this issue?
The text was updated successfully, but these errors were encountered: