Fine-Grained Signals & Glitch-Free Topological Evaluation vs Virtual DOM & Reconciliation
Avoids top-down component tree diffing by propagating exact invalidation marks directly along subscribed graph edges.
Structured Comparison Matrix
| Dimension | Fine-Grained Signals & Glitch-Free Topological Evaluation | Virtual DOM & Reconciliation |
|---|---|---|
| Mental Model | Eliminates double-renders and torn intermediate state in diamond dependency graphs. Push-pull topological evaluation marks downstream nodes dirty in one pass and lazily recomputes only what effects actually read. | Diffs lightweight JS element trees in O(n) using type and key heuristics, batching minimal DOM mutations into a single commit phase. |
| Maturity & Domain | Framework Internals | State & Architecture |
| Prerequisites | Foundational primitive | |
| When Not to Use | When not to use: Do not model high-frequency numerical streams (such as 60-120 Hz WebGL particle positions, physics ticks, or audio buffers) as individual reactive graph nodes. Allocating linked-list edges and traversing dirty states per element burns the 8.3 ms frame budget; store contiguous numeric state in Typed Arrays and drive updates imperatively inside a requestAnimationFrame loop. | When not to use VDOM: For high-frequency 60 fps canvas/drag coordinates or 10,000-cell spreadsheets, bypass VDOM diffing and update CSS transforms or signals directly. |
Engine Mechanics & Trade-Offs
A directed acyclic reactive graph executes on the JS main thread by splitting invalidation into an eager push pass that colors direct subscribers Dirty and transitive subscribers Check, followed by a lazy pull pass that resolves dependencies in topological order and skips recomputation when upstream outputs are unchanged.
Key Pitfalls: Stack overflow on cyclic derivations: Reading a computed signal inside its own evaluation chain (A -> B -> A) throws RangeError: Maximum call stack size exceeded during the recursive pull phase. Track a transient Computing flag on each active node and throw an explicit cycle error before recursing. Silent heap growth i
Computes a minimal DOM mutation batch by diffing lightweight JS element trees in O(n) heuristics before committing writes to the live DOM.
Key Pitfalls: key={index} on dynamic lists: Reordering, filtering, or prepending items shifts array indices, causing the reconciler to attach row A's <input> DOM state to row B's data. Defining components inside components: Writing function Inner() {} inside Parent creates a new function reference every render, forcing a full unmoun
Seen in Architecture Autopsies
A single filter click freezes the UI for 180 ms INP and triggers a visible 24 px toolbar jump in the data grid.
Changing a single URL filter triggers an infinite render loop, Maximum update depth exceeded, and a burst of 429 Too Many Requests responses.