Replies: 1 comment 3 replies
-
|
Yeah - this is a good point. We made a change to const initialState = { ... }
const clonedState = deepCLone(initialState)
const store = proxy(clonedState)@dai-shi - do you think this is something that is an issue or should |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
thanks for open sourcing this awesome library!
I used deepClone for creating a new proxy of an existing proxy (not resetting) and I experienced some unexpected behaviour (from my perspective!).
Unexpected was, that it returns proxies for sets and maps for nested properties but the clone object itself is not a proxy. I expected that the clone object is as well a proxy.
Secondly, when deep cloning proxies containing nested js Date instances, they were not copied - which makes sense from a technical view but might be unexpected from an application developer view.
Beta Was this translation helpful? Give feedback.
All reactions