@serenity-is/corelib / batch
Variable: batch()
constbatch: <T>(fn) =>T
Defined in: ../domwise/dist/index.d.ts:2557
Batches multiple signal updates into a single notification.
Re-exported from @preact/signals-core.
Type Parameters
T
T
The return type of the batch function.
Parameters
fn
() => T
A function that performs batched signal updates.
Returns
T
The return value of fn.