Rendering & reactivity
Signals
Run Angular signals and inspect dependency changes, linked state, and a canceled async load.
Angular 22.3.2 · trace
Objective
Predict when a computed value recalculates, a linked value resets, or a resource cancels pending work.
Transcript
Angular 22.3.2
- The basket starts with two items, a regular price of $10, and an inactive sale price of $8.
- Reading the computed total for the first time runs its calculation. Reading it again with the same dependencies reuses the result.
- Updating the inactive sale price leaves the current total cached. Turning the sale on switches the price that the calculation reads.
- After the switch, editing the regular price leaves the total cached. Editing the sale price changes the next result.
- The shipping scenario overrides a linked selection. It keeps the selection while it remains available and resets when the option is removed.
- The async scenario starts a pending north lookup and switches to south. Angular aborts the north loader, and the resource exposes the south result.
- The equality fixture compares a custom comparator, a deep mutation, and a new object. The effect fixture uses an untracked read and records cleanup.
- The RxJS bridge observes values before and after stabilization. The resource comparison inspects a local Observable and synthetic HTTP failure and retry.
- The Signal Forms fixture records touch, dirty and pending state, then validates and submits a local pickup code.