3 ms·
The goal is for nearly all of your observers to be nothing but a cache-clear on a pure function ("computed", in MobX's case). Chained reactions (reactions that
by brundolf 6y ago
The goal is for nearly all of your observers to be nothing but a cache-clear on a pure function ("computed", in MobX's case). Chained reactions (reactions that trigger other reactions) are very rarely necessary and should be kept to a small enough number that you can model the entire state-graph in your head.
- spion 6y agoMobX works well when paired with a Rx-like library for the more complex cases. With that its never necessary to chain reactions.