@serenity-is/domwise / batch
Variable: batch()
constbatch: <T>(fn) =>T=signals.batch
Defined in: src/signals.ts:72
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.