You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import plugins from './plugin/plugins';
import Vuex, {ModuleTree} from 'vuex';
import Vue from 'vue';
Vue.use(Vuex);
const store = new Vuex.Store(
{
strict: 'production' !== process.env.NODE_ENV,
devtools: 'production' !== process.env.NODE_ENV,
modules,
plugins,
},
);
export default store;
Impossible to clear, update cached, encoded values. They are always old, outdated which cause a lot of issues, like expired token and its impossible to replace it.
Possibly related to https://github.com/championswimmer/vuex-persist#readme
and removeItem: key => encryptedLocalStorage.remove(key),
I know you can pass namespaced modules as a "paths" property with an array as value to the persistedState config object. Try targeting the modules you'd like to persist.
I have a working implementation of persistedState with SecureLs, however I am only using it to keep information about the current theme which in this case is a boolean value. Works fine though.
Impossible to clear, update cached, encoded values. They are always old, outdated which cause a lot of issues, like expired token and its impossible to replace it.
Possibly related to
https://github.com/championswimmer/vuex-persist#readme
and
removeItem: key => encryptedLocalStorage.remove(key),
The text was updated successfully, but these errors were encountered: