Skip to main content

batch

view on npm

Run a function. During that function's execution, any state changes will be batched and only applied once the function has finished.

batch(fn)

Run a function. During that function's execution, any state changes will be batched and only applied once the function has finished.

ParamDescription
fn

The function to run in a batch

.batch(fn)

Run a function. During that function's execution, any state changes will be batched and only applied once the function has finished.

ParamDescription
fn

The function to run in a batch

.batch(fn)

The batch function allows you to run a series of actions in a single transaction

ParamTypeDescription
fnfunction

The function to run

.batch(fn)

Run a function. During that function's execution, any state changes will be batched and only applied once the function has finished.

ParamDescription
fn

The function to run in a batch