A plugin that makes persistant state of vuex
npm install persistant-vuexjs
import createPersistantState from 'persistant-vuex'const myPlugin = createPersistantState({
storage: localStorage, // default
key: 'vuex' // default
})
const store = new Vuex.store({
// ...
plugins: [myPlugin]
})
``