We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
vuex-persistedstate
1 parent f1766ef commit cea74feCopy full SHA for cea74fe
package.json
@@ -11,7 +11,8 @@
11
"core-js": "^3.8.3",
12
"vue": "^3.4.15",
13
"vue-ellipse-progress": "^2.1.2",
14
- "vuex": "^4.1.0"
+ "vuex": "^4.1.0",
15
+ "vuex-persistedstate": "^4.1.0"
16
},
17
"devDependencies": {
18
"@typescript-eslint/eslint-plugin": "^5.4.0",
src/store/index.ts
@@ -1,4 +1,5 @@
1
import { createStore } from "vuex";
2
+import createPersistedState from "vuex-persistedstate";
3
4
export default createStore({
5
state: {
@@ -275,4 +276,5 @@ export default createStore({
275
276
277
278
modules: {},
279
+ plugins: [createPersistedState()], //create persisted state and save the data to local storage
280
});
0 commit comments