historySignal

G
W

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.

Writable undoable editor
Record another signal