-
Hi! I have interesting issue and would like to know if this kind of behaviour is expected? If Yes, then what could be the best solution to avoid this? I have defined 2 reactions, which listens the same prop. In my expectations, I was expecting that each time a prop changes, reaction is called. But in this example, I noticed that If I change observable prop value inside first reaction, second reaction is skipping the original value (I would expect that second reaction is called with ALL values (in this example 2 times instead 1). Here is the link to JSFiddle Example code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Did you checked https://mobx.js.org/reactions.html#use-reactions-sparingly ? |
Beta Was this translation helpful? Give feedback.
Did you checked https://mobx.js.org/reactions.html#use-reactions-sparingly ?