forked from AkkomaGang/akkoma-fe
Remove state persistence for now.
Makes chrome really slow and adds problems with tab synchronization.
This commit is contained in:
parent
2933dc30a5
commit
9cf438f1b2
1 changed files with 5 additions and 5 deletions
10
src/main.js
10
src/main.js
|
@ -17,7 +17,7 @@ import configModule from './modules/config.js'
|
||||||
|
|
||||||
import VueTimeago from 'vue-timeago'
|
import VueTimeago from 'vue-timeago'
|
||||||
|
|
||||||
import createPersistedState from 'vuex-persistedstate'
|
// import createPersistedState from 'vuex-persistedstate'
|
||||||
|
|
||||||
Vue.use(Vuex)
|
Vue.use(Vuex)
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
@ -28,9 +28,9 @@ Vue.use(VueTimeago, {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const persistedStateOptions = {
|
// const persistedStateOptions = {
|
||||||
paths: ['users.users', 'statuses.notifications']
|
// paths: ['users.users', 'statuses.notifications']
|
||||||
}
|
// }
|
||||||
|
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
modules: {
|
modules: {
|
||||||
|
@ -39,7 +39,7 @@ const store = new Vuex.Store({
|
||||||
api: apiModule,
|
api: apiModule,
|
||||||
config: configModule
|
config: configModule
|
||||||
},
|
},
|
||||||
plugins: [createPersistedState(persistedStateOptions)],
|
// plugins: [createPersistedState(persistedStateOptions)],
|
||||||
strict: process.env.NODE_ENV !== 'production'
|
strict: process.env.NODE_ENV !== 'production'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue