Skip to main content

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 ParameterDescription
TCode block return type.

Parameters​

ParameterTypeDescription
fn() => TCode block to run.

Returns​

T

The value returned by the code block.