-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
State not being restored. #13
Comments
could you show the source of your vuex store entry point |
Maybe this would help. I had the same problem and this could be a workaround. Place the following in the component which paints the persisted data:
|
If you want to know about my fix context. See msaelices/vue-onsenui-weather@d34395b |
this is the same problem as #15 it has been fixed in v1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a list of objects that is stored in vuex. I have setup vuex-persist as instructed but on startup, it doesn't auto restore the state.
I have an action that runs every time the app is started, this action fetches data based on a variable that should be persisted with vuex-persist.
inside the response callback of the axios request,
this.state.lastUpdate
seems to have the right persisted value. other state attributes have this behavior as well.my question being, when is the state being restored? is there a special scope needed before it can be accessed?
in some cases, I have to mutate a certain state before the persisted version is read by the bound vue component.
Any help will be appreciated. I feel as if I am missing something obvious here
The text was updated successfully, but these errors were encountered: