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

How to rehydrate after restarting or reloading. #66

Closed
michaelmano opened this issue Feb 24, 2021 · 2 comments
Closed

How to rehydrate after restarting or reloading. #66

michaelmano opened this issue Feb 24, 2021 · 2 comments

Comments

@michaelmano
Copy link

This is more of a question as I cant find any information on it or dont know what im looking for, I have a basic app. Im wanting to know how to rehydrate the state after the application is restarted or closed.

my store is using the following:

plugins: [
    createPersistedState(),
    createSharedMutations(),
  ],

and my main is importing the store but when the application reboots the store is blank again.

@michaelmano
Copy link
Author

Don't worry. for some odd reason this only works if my actions are all uppercase.

@NoelDavies
Copy link

I was going to say, you could always persist to localstorage instead?

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

2 participants