Skip to content

How to override by new state object #153

Closed Answered by dai-shi
1natsu172 asked this question in Q&A
Discussion options

You must be logged in to vote

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)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@1natsu172
Comment options

Answer selected by 1natsu172
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants