Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Ctrl/Cmd + Z | Undo |
Ctrl/Cmd + Shift + Z | Redo |
How It Works
FlowDrop’s history store takes snapshots of the entire workflow state. Each change (node add/remove/move, edge add/remove, config change) pushes a new snapshot onto the undo stack.- Undo restores the previous snapshot and pushes the current state onto the redo stack
- Redo restores the next snapshot from the redo stack
- Making a new change after undoing clears the redo stack
Programmatic Access
History lives on the instance — resolve it withgetInstance() inside the component tree (or use the mount handle’s .instance):
Transactions
Group multiple changes into a single undo step:Building Custom Undo/Redo Buttons
Outside the component tree, hold the mount handle and read.instance:
Next Steps
- Store System — all stores including history
- Event System —
onWorkflowChangefires after undo/redo