-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vue 3 & Vuex 4 compatibility? #235
Comments
I think the main issue here comes with defining the this.RESTORE_MUTATION = function RESTORE_MUTATION(state: S, savedState: any) {
const mergedState = merge(state, savedState || {}, this.mergeOption)
for (const propertyName of Object.keys(mergedState as {})) {
(this as any)._vm.$set(state, propertyName, (mergedState as any)[propertyName])
}
} Also, on another note regarding how to keep both Vue 2 and Vue 3 compatibility: There is a neat solution called |
Look at this issue / fix: #224 It works for me totally fine. |
I guess this would solve some issues with current vuex versions. Any chance for a new release anytime soon? |
Hello there!
We are using vuex-persist in our application and are currently migrating to Vue 3 and Vuex 4. Are there any plans on adding support for Vue 3 and Vuex 4?
I tried to add the support on my own, but ran into issues:
Uncaught (in promise) DOMException: Failed to execute 'put' on 'IDBObjectStore': [object Array] could not be cloned.
reducer
function worked, but after each hard refresh (F5) the app didn't notice that the store data was thereThe text was updated successfully, but these errors were encountered: