Rendering & reactivity

Signals

Run Angular signals and inspect dependency changes, linked state, and a canceled async load.

Angular 22.3.2 · trace
Lesson flow Fixture action. Signal state. Computation. Read result.
Fixture action
Signal state
Computation
Read result

Objective

Predict when a computed value recalculates, a linked value resets, or a resource cancels pending work.

Transcript

Angular 22.3.2

  1. The basket starts with two items, a regular price of $10, and an inactive sale price of $8.
  2. Reading the computed total for the first time runs its calculation. Reading it again with the same dependencies reuses the result.
  3. Updating the inactive sale price leaves the current total cached. Turning the sale on switches the price that the calculation reads.
  4. After the switch, editing the regular price leaves the total cached. Editing the sale price changes the next result.
  5. The shipping scenario overrides a linked selection. It keeps the selection while it remains available and resets when the option is removed.
  6. The async scenario starts a pending north lookup and switches to south. Angular aborts the north loader, and the resource exposes the south result.
  7. The equality fixture compares a custom comparator, a deep mutation, and a new object. The effect fixture uses an untracked read and records cleanup.
  8. The RxJS bridge observes values before and after stabilization. The resource comparison inspects a local Observable and synthetic HTTP failure and retry.
  9. The Signal Forms fixture records touch, dirty and pending state, then validates and submits a local pickup code.

Sources