4 ms·
if (when?) Signals become a standard, React will be in a tight corner if they decide to ignore them
by agos 1y ago
if (when?) Signals become a standard, React will be in a tight corner if they decide to ignore them
- WorldMaker 1y agoNot really? `useSignal` is just another hook React needs as a replacement/augment for `useState` and maybe `useEffect`. Signals aren't that special. Arguably that's part of why a lot of people like Signals as a proposal. (I'm still of the sort that thinks Signals are just worse Observables, so it's not a proposal I'm particularly thrilled about, but were it to be adopted Signals are easy to use in Observable contexts as well, they are just uglier half-implemented BehaviorSubjects, though maybe with a few extra lint rules to prefer Observable behaviors over Signal ones.)