News for hackers. Stuff that matters.
Re:Show HN: A tiny and fast reactive observables library via... by fabiospampinato on Monday June 27, 2022 @06:19AM (#31892596)
> 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/disposed. That's unimplementable on top of other functions because they just don't have that property.

Re:Show HN: A tiny and fast reactive observables library via... by rahim_alwer on Tuesday June 28, 2022 @12:01AM (#31903933)
You're 100% right and I realized a little after writing it. Added `$root` to the library :)