Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
joeldrake
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
joeldrake
3y ago
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 cases
2.
▲
by
joeldrake
3y ago
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.
3.
▲
by
joeldrake
3y ago
Why not just call it signal and computed? (instead of state and derived)
4.
▲
by
joeldrake
4y ago
Hurray!