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
{{ message }}
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
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
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 ?
The text was updated successfully, but these errors were encountered: