Skip to content
Discussion options

You must be logged in to vote

Should assigning regular object to a proxied observable create make the object observable?

If you assign non-observable plain object to observable object, it's automatically copied and converted to observable.
store.foo = { x: 1 } is same as store.foo = observable({ x: 1 })
The behavior can be modified with observable.ref annotation or deep: false option.
Not sure if that's what you're asking about.

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@wegry
Comment options

@mweststrate
Comment options

@wegry
Comment options

@mweststrate
Comment options

@wegry
Comment options

Answer selected by wegry
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants