Subtree root target object.
Optional
store: UndoStoreOptional UndoStore
where to store the undo/redo queues. Use this if you want to
store such queues somewhere in your models. If none is provided it will reside in memory.
Optional
options: UndoMiddlewareOptions<S>Extra options, such as how to save / restore certain snapshot of the state to be restored when undoing/redoing.
An UndoManager
which allows you to do the manage the undo/redo operations and dispose of the middleware.
Creates an undo middleware.