Closed bestRenekton closed 3 years ago
Please ask questions on either StackOverflow or any Vuejs related forum. The issue tracker is for issues only.
The issues is that the documentation does not demonstrate clearly how to change the prefix dynamically after the vuex store is instantiated and createPersistedState
is called.
vuex-persistedstate
version:4.0.0-beta.3node
version:15.1.0npm
(oryarn
) version:1.22.10Relevant code or config
Problem description: when user1 login, we save his data as 'user1' by localstorage then he logout and user2 login so how can we save his data as 'user2' by localstorage ? we want their both data in localstorage,because user1 maybe login next time.
Suggested solution: in vuex module , this can do work, but It's too cumbersome,because we have many module
so can vuex-persistedstate set dynamic key ?