Signals, the push-pull based algorithm (willybrauner.com)

The article explains how UI reactivity “signals” work under the hood, focusing on a push–pull approach where basic signals eagerly notify dependents while computed values pull from their dependencies via lazy re-evaluation and caching. It describes how computed functions auto-track their dependencies using a global stack during execution, mark themselves dirty when sources change, and clean up old subscriptions to keep the dependency graph accurate.

April 06, 2026 05:20 Source: Hacker News