Skip to content

update observable inside autorun/observable won't trigger render #2965

Answered by BATCOH
roeycohen asked this question in Q&A
Discussion options

You must be logged in to vote

IDK about details of current implementation, but in general changing observables within an autorun\reaction is not recommended by the docs:
https://mobx.js.org/reactions.html#use-reactions-sparingly

Replies: 3 comments 2 replies

Comment options

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

Answer selected by roeycohen
Comment options

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

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
4 participants