Re:A proposal to add signals to JavaScript
by imbnwa on Sunday March 31, 2024 @10:00PM
(#39890175)
Remember the Observable proposal?
[ Parent
| on HN ]
Re:A proposal to add signals to JavaScript
by tengbretson on Sunday March 31, 2024 @10:06PM
(#39890210)
The Observable proposal made a stronger case in my opinion, since Observables provide an interface that is functionally unique and useful for the boundaries between app logic and libraries, so a single standard approach has benefits. Signals on the other hand live right where application state binds to the ui. Is this really somewhere that people are patching together a hodge podge of libraries that need to use a consistent api? I'm not so sure.
Signals are used in every framework except React. Observables weren't. That's a huge difference.
There's the old one that fizzled out:
https://github.com/tc39/proposal-observable
And there's the new one which seems to be getting implemented in node right now: https://github.com/WICG/observable