mirror of
https://github.com/r-ca/kidshift-web.git
synced 2024-10-25 16:34:01 +00:00
vuex-persistedstate
This commit is contained in:
parent
2aef4f4f24
commit
bc3999f440
|
@ -1,6 +1,7 @@
|
|||
import { createStore } from 'vuex'
|
||||
import accountStateModule from './account';
|
||||
import { AccountStateInterface } from './account/state';
|
||||
import createPersistedState from 'vuex-persistedstate';
|
||||
|
||||
export interface RootStateInterface {
|
||||
// Define your own store structure, using submodules if needed
|
||||
|
@ -12,6 +13,7 @@ export default function (/* { ssrContext } */) {
|
|||
modules: {
|
||||
account: accountStateModule
|
||||
},
|
||||
plugins: [createPersistedState({storage: window.sessionStorage})],
|
||||
|
||||
// enable strict mode (adds overhead!)
|
||||
// for dev mode and --debug builds only
|
||||
|
|
Loading…
Reference in New Issue
Block a user