-
I want to re-initialize an existing proxy-state. Is there any way to do this? Or do you have a plan? Best regards. |
Beta Was this translation helpful? Give feedback.
Answered by
dai-shi
May 9, 2021
Replies: 1 comment 1 reply
-
This is not possible as it's how JS (Proxy) works. Please create a wrapper object. const s = proxy({ obj: { hoge: 1, puyo: 2 } })
s.obj = { foo: 1 }
snapshot(s.obj) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
1natsu172
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not possible as it's how JS (Proxy) works.
Please create a wrapper object.