Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > batch

Surface.batch() method

Wraps the underlying Toolkit's batch function with the added step of first suspending events being fired from this renderer.

Signature:

batch(fn: () => any): void;

Parameters

ParameterTypeDescription
fn() => anyFunction to run while rendering and events are both suspended.

Returns:

void