Pass a value to create a writable signal, or pass a signal to record its observed values. Use undo and redo to navigate changes, and use the reactive canUndo and canRedo signals to drive controls.
Source signals are observed by an Angular effect. Multiple synchronous emissions can therefore be coalesced, so intermediate values may not be added to history.
Source: 0 ยท Recorded value: 0
The three synchronous writes are observed as one source change, so their intermediate values are skipped.