Use when
- Users perform reversible sequences of edits and can undo too far.
- The product can replay an undone operation accurately against the same target.
- A visible command state can show when redo is available, unavailable, cleared, or invalid.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
Users can undo too far, change their mind after an undo, or need to reapply a reversible edit without reconstructing the work manually.
The full lab is intentionally loaded on request. That keeps this reading page fast while preserving the strong and weak states, keyboard checks, and failure scenarios.
The product supports reversible editing, ordering, formatting, drawing, document, layout, or configuration actions.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
No-redo state before any undo has happened.
Redo button looks available but does nothing because no redo stack exists.
Expose Redo as a named button, menu item, or command row when editing commands are visible.
Apple - checked
Apple frames undo and redo as expected reversal mechanisms that support recovery and safe exploration.
Microsoft - checked
VS Code exposes undo and redo as command identifiers with platform keyboard shortcuts.
Microsoft - checked
Microsoft documents redo as redoing typing that was undone with undo.
Source trail checked: