https://github.com/valesdev/vuex-persist-plugin
Persist and restore the Vuex state between browser reloads.
https://github.com/valesdev/vuex-persist-plugin
vue vuex
Last synced: 2 months ago
JSON representation
Persist and restore the Vuex state between browser reloads.
- Host: GitHub
- URL: https://github.com/valesdev/vuex-persist-plugin
- Owner: valesdev
- License: mit
- Created: 2019-03-15T05:50:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-10-18T07:03:29.000Z (over 4 years ago)
- Last Synced: 2025-10-31T02:20:17.422Z (8 months ago)
- Topics: vue, vuex
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vuex-persist-plugin
[](https://www.npmjs.com/package/vuex-persist-plugin)
[](https://npmcharts.com/compare/vuex-persist-plugin?minimal=true)
[](https://www.npmjs.com/package/vuex-persist-plugin)
Persist and restore the Vuex state between browser reloads.
## Usage
```js
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](http://opensource.org/licenses/MIT)