News for hackers. Stuff that matters.
Re:Thoughts on Svelte by tobr on Tuesday March 28, 2023 @03:48AM (#35337211)
I thought about it some more after writing my reply. I think a first approximation is that $: gets confusing almost as soon as you bring in more than one level of branching control flow. It’s better to do that with stores or encapsulate the logic in plain old functions.

But if you mostly have some values that need to be recomputed when other values change, or an effect that needs to re-run, it’s a convenient tool to use.

There are no comments on this comment yet.