Re:Show HN: A tiny and fast reactive observables library via...
by brundolf on Sunday June 26, 2022 @03:11PM
(#31886945)
> I don't entirely understand what it means to dispose of observables, is that just an internal optimization for cleanups basically?
In MobX there are various things that have to be manually cleaned up at different times to avoid memory-leaks, since reactive systems like this involve a lot of cross-references. I could imagine eg. that cleaning up an observable in this library releases references to all memoized values that were derived from it
In MobX there are various things that have to be manually cleaned up at different times to avoid memory-leaks, since reactive systems like this involve a lot of cross-references. I could imagine eg. that cleaning up an observable in this library releases references to all memoized values that were derived from it