Skip to content

What is the functionality of onBecomeObserved when property (2nd arg) is omitted? #3355

Answered by urugator
FirstWhack asked this question in Q&A
Discussion options

You must be logged in to vote

Depends on what this is. If observable object it will probably throw:


But it can be observable.box(5), observable.computed(() => {}), createAtom(), observable([]), observable(new Set()), observable(new Map()).
In case of observable(new Map()) it reacts to subscriptions related only to the keys (addition/removal of key).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@FirstWhack
Comment options

@urugator
Comment options

@FirstWhack
Comment options

Answer selected by FirstWhack
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