4 ms·
Huh interesting, do you happen to have a link that goes into cycle detection? If it comes with MobX out-of-the-box, I can say that it did not seem to have kicke
by gr__or 3y ago
Huh interesting, do you happen to have a link that goes into cycle detection? If it comes with MobX out-of-the-box, I can say that it did not seem to have kicked in for our use cases (but maybe it's an opt-in?)
- spion 3y agoI think its always been built in, but pertains to `computed` values only. Its still possible to create cycles but you need to combine `autorun`, timers/nextTick/similar and actions to do it - definitely not something thats needed in most code. Some other methods for tracing and debugging complex graphs are described here https://mobx.js.org/analyzing-reactivity.html https://mobx.js.org/analyzing-reactivity.html
- gr__or 3y agoNeat, thanks for the link! I vaguely remember my colleague having a reason for why his abstraction did not fit in the computed box. Probably something related to async, so it might very well have been because of that