After reading this from rich_harris: ”Basically, you can only modify state _where it's declared_. If you want to allow the 'outside world' to modify that state, you need to expose a function that does so. This is unlike…
[flagged]
Yes, and Preact. Vue also uses ”computed”, but ”ref” instead if signal. It just strikes me that a lot of frameworks seem to implement the same thing (signals) but use different names for it.
Why not just call it signal and computed? (instead of state and derived)
Hurray!
After reading this from rich_harris: ”Basically, you can only modify state _where it's declared_. If you want to allow the 'outside world' to modify that state, you need to expose a function that does so. This is unlike…
[flagged]
Yes, and Preact. Vue also uses ”computed”, but ”ref” instead if signal. It just strikes me that a lot of frameworks seem to implement the same thing (signals) but use different names for it.
Why not just call it signal and computed? (instead of state and derived)
Hurray!