Skip to content

1.1.0

Compare
Choose a tag to compare
@ArthurClemens ArthurClemens released this 06 Mar 16:17
· 3 commits to main since this release

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)
});