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
This is the expected behavior. When accessing the internal Objects/Arrays of a reactive object, they are processed to become reactive. The overwriteMerge function internally accessed s1.l, so it turned into a Proxy array.
Vue version
^3.5.13
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-4umr7oj9?file=src%2FApp.vue
Steps to reproduce
Run the stackblitz and open the console.
What is expected?
These weird proxied arrays should not be created?
What is actually happening?
With the arrayMerge option, the nested arrays are merged with proxies. Now for example a localForage can't clone the object.
Without the option, both the reactive objects are merged and they have no nested arrays with proxy.
System Info
Any additional comments?
Related issue on vuex-persist
championswimmer/vuex-persist#271 (mine)
Other users reporting the same "cannot clone error" when migrating from Vue 2 to Vue 3.
championswimmer/vuex-persist#232
championswimmer/vuex-persist#235
The text was updated successfully, but these errors were encountered: