You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importVuexPersistencefrom'vuex-persist'exportdefault({ store })=>{newVuexPersistence({key: 'applocal',storage: window.localStorage,restoreState: (key,storage)=>JSON.parse(storage.getItem(key)),}).plugin(store)}
When I reload the page data is restored from localStore to Vuex. But I am unable to access the data from the page. I have tried accessing the data from Nuxt lifehooks.
I have tried this both in ssr and spa modes and the result is the same.
The text was updated successfully, but these errors were encountered:
Setup:
nuxt
2.15.7:vuex-persistedstate
4.1.0:node
16.13.1:yarn
1.22.15:plugins/persistedstate.js
When I reload the page data is restored from
localStore
to Vuex. But I am unable to access the data from the page. I have tried accessing the data from Nuxt lifehooks.I have tried this both in
ssr
andspa
modes and the result is the same.The text was updated successfully, but these errors were encountered: