Skip to content
Snippets Groups Projects
Commit 3fd0d0d1 authored by lain's avatar lain
Browse files

Revert "Remove state persistence for now."

This reverts commit 9cf438f1.
parent fcb950fb
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,7 @@ import configModule from './modules/config.js'
import VueTimeago from 'vue-timeago'
// import createPersistedState from 'vuex-persistedstate'
import createPersistedState from 'vuex-persistedstate'
Vue.use(Vuex)
Vue.use(VueRouter)
......@@ -28,9 +28,9 @@ Vue.use(VueTimeago, {
}
})
// const persistedStateOptions = {
// paths: ['users.users', 'statuses.notifications']
// }
const persistedStateOptions = {
paths: ['users.users', 'statuses.notifications']
}
const store = new Vuex.Store({
modules: {
......@@ -39,7 +39,7 @@ const store = new Vuex.Store({
api: apiModule,
config: configModule
},
// plugins: [createPersistedState(persistedStateOptions)],
plugins: [createPersistedState(persistedStateOptions)],
strict: process.env.NODE_ENV !== 'production'
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment