OptionalattachedAttached state management for storing additional state with each undo event.
OptionalgroupingTime window in milliseconds for grouping changes into a single undo event. If undefined (default), changes are only grouped within the same MobX action. If set to a number, changes that occur within this time window will be merged into the last undo event, even if they come from different actions.
OptionalmaxMaximum number of redo levels to keep.
OptionalmaxMaximum number of undo levels to keep.
The subtree root to track changes on.
OptionalstoreOptional UndoStore to use. If not provided, a new one will be created.
Note: The UndoStore is not subject to the undo manager, even if it is a child of the rootNode. Changes to the UndoStore itself will not be tracked or undoable.
Options for creating an UndoManager.