Comment

Comment by ZephyrBlu

> on average this should be cleaner

I care more about explicitness than cleanliness though, especially if my effect touches 3+ state variables in a relatively large function.

I can definitely believe that the average case is better with signals, but is the average case even important? I don't really care about the average case with something like state management because all the libraries are pretty good for that. It's the edge cases and complex state logic I care more about.

Yeah useState, setState, prevState blah blah blah is a lot of overhead for the average case but I really like the explicitness it provides me in the not-so-average cases.

What do you mean by conditional dependencies?

parent ZephyrBlu 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton