OptionalinitialModel: Model | (() => Model | null) | null
the initial model (or null if the model is loaded asynchronously), or a
function that lazily returns it (evaluated once, like a useState initializer)
Optionaloptions: IUndoOptions
optional configuration
React hook that encapsulates undo/redo for a FlexLayout Model. It owns the model state, records an undo snapshot before each model mutation (collapsing an entire drag gesture into a single step), and replaces the model on undo/redo via
Model.fromJsonso mounted tab content is preserved. The model is passed to the Layout component from the returnedmodelfield.