Earlier quoted context omitted.
Thanks for all the feedback, love it! > I don't entirely understand what it means to dispose of observables, is that just an internal optimization for cleanups basically? Exposing an API for this feels a bit risky, like it feels easy to misuse. It's a cleanup function that ensures that the observable can be garbage collected by clearing references to it in the dependency sets. It also marks the observable as disposed…
> I don't think it's needed here because it can be created with an `$effect`. It returns a `stop` function that can be called with `true` to dispose of all inner computations. I think I should provide a `$root` function that's just sugar for the mentioned. Yes, but there's another ingredient missing, which is the important one: roots are not disposed of automatically when the parent computation is re-executed/dispose…
Re: Show HN: A tiny and fast reactive observables library via functions
#41You're 100% right and I realized a little after writing it. Added `$root` to the library :)