Undo & Redo
Overview
rs-grid maintains an undo/redo history for reversible actions. Press Ctrl+Z to undo and Ctrl+Y to redo.
Commands
What is tracked
History capacity
The undo stack holds a maximum of 100 entries. When the limit is reached, the oldest entry is removed (FIFO). Performing a new undoable action clears the entire redo stack.
How it works
- When an undoable command is applied,
GridStatepushes anUndoEntrywith the inverse operation Undopops from the undo stack, applies the inverse, and pushes the re-inverse onto the redo stackRedopops from the redo stack, applies the entry, and pushes back onto the undo stack
Actions NOT tracked
These actions are not undoable:
- Selection changes
- Scrolling
- Sorting / filtering
- Search
- Hover state