This repository was archived by the owner on Sep 8, 2025. It is now read-only.
1.1.0
Grouping functionality
Optionally add a groupId to identify related command pairs. Undo and redo actions will then be performed on all adjacent command pairs with that group id.
For example:
undoManager.add({
groupId: 'auth',
undo: () => removePerson(id),
redo: () => addPerson(id, name)
});