persistant-vuex
v1.0.0
Published
A plugin that makes persistant state of vuex
Downloads
1
Readme
persistant-vuex
persistant Vuex state
Install
npm install --save persistant-vuex
Usage
import createPersistantState from 'persistant-vuex'
const myPlugin = createPersistantState({
storage: localStorage, // default
key: 'vuex' // default
})
const store = new Vuex.store({
// ...
plugins: [myPlugin]
})