A TC39 Proposal for Signals. A v0 draft of the signals proposal… | by EisenbergEffect | Apr, 2024 | Medium

April 3, 2024

What are signals?A signal is a data type that enables one-way data flow by modeling cells of state and computations derived from other state/computations. The state and computations form an acyclic graph, where each node has other nodes that derive state from its value (sinks) and/or that contribute state to its value (sources). A node may also be tracked as “clean” or “dirty”.

Source: A TC39 Proposal for Signals. A v0 draft of the signals proposal… | by EisenbergEffect | Apr, 2024 | Medium

Signals are a lightweight approach to state management and decoupling, found in Angular and other front end frameworks–’reactive primitives for managing application state‘ as Preact calls them.

There’s a very early stage proposal to bring them to the JavaScript language as a core part of the language.

While it might be a while until we see them widely in JS engines, it’s an approach I suspect will become widely used long before then.