vuex-persist-plugin

1.0.5 • Public • Published

vuex-persist-plugin

Version Downloads License

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i vuex-persist-plugin

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

12.9 kB

Total Files

10

Last publish

Collaborators

  • ychong