vuex-persist-plugin
v1.0.5
Published
Persist and restore the Vuex state between browser reloads.
Downloads
4
Readme
vuex-persist-plugin
Persist and restore the Vuex state between browser reloads.
Usage
import Vue from 'vue'
import Vuex from 'vuex'
import vuexPersistPlugin from 'vuex-persist-plugin'
Vue.use(Vuex)
const store = new Vuex.Store({
modules: {},
strict: true,
plugins: [
vuexPersistPlugin({
modules: [
'auth'
]
})
]
})
new Vue({ store })