1.0.0 • Published 6 years ago

persistant-vuex v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

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]
})