A Deep Dive into Fine-Grained Reactivity
summary
Shows a TypeScript createSignal(read, write) implemented from scratch, then enriches it with a dependency graph of node runners, subscribe/cleanup helpers and an effect runner that auto-tracks dependencies. Demonstrates with a counter and first/last name examples using Angular CLI and WebStorm; updates run automatically and only dependent effects re-execute. Claims signals = value + synchronous change notification and argues they let frameworks update specific DOM nodes instead of checking the whole tree; notes TC39 stage 1.
AI-written summary · about
chapters (12)
- 0:00Introduction and speaker intro
- 1:37What are signals
- 2:59Why web frameworks need signals
- 4:25Signals in Angular example
- 6:10Building a signal from scratch
- 9:32Adding dependency tracking
- 11:59Creating a real signal
- 13:23Implementing effects
- 15:28Multiple dependencies example
- 17:14When to use effects
- 18:18Signals in JavaScript standard
- 19:23Summary and Q&A
