Function: withoutUndo()
function withoutUndo<T>(fn): T;
Globally skips the undo recording mechanism for the code block that gets run synchronously inside.
Consider using the withoutUndo method of a particular UndoManager instead.
Type Parameters
| Type Parameter | Description |
|---|---|
T | Code block return type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
fn | () => T | Code block to run. |
Returns
T
The value returned by the code block.