Skip to content
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

Last Redux State is not written to disk #35

Open
Diwei-Chen opened this issue May 18, 2017 · 5 comments
Open

Last Redux State is not written to disk #35

Diwei-Chen opened this issue May 18, 2017 · 5 comments

Comments

@Diwei-Chen
Copy link
Contributor

Diwei-Chen commented May 18, 2017

screen shot 2017-05-18 at 3 13 27 pm

Hi @JulianKingman , this is the last action that modifies the redux state and after that, we have 9 resources stored in state.

But when we shut down the server and then refresh the app, persist/REHYDRATE only carries 6 of them, as shown below,
screen shot 2017-05-18 at 3 17 47 pm

Wondering the last redux state should be written to disk in the debounce time?

Or this is caused by redux-persist? Please see:
rt2zz/redux-persist#350
rt2zz/redux-persist#355

@JulianKingman
Copy link
Contributor

So the default debounce is 1000ms, do you wait that long at least?

@Diwei-Chen
Copy link
Contributor Author

Yes, i did

@Diwei-Chen
Copy link
Contributor Author

If i change all the _.clone to _.cloneDeep as discussed in #36 , the problem is solved, but this would be too expensive.

@bogomazov
Copy link

Same issue

@JulianKingman
Copy link
Contributor

Still an issue on the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants