Skip to main content

Function: batch()

batch<T>(fn): T

Defined in: src/core/signals.ts:325

Batch writes so dependent effects run once after the block, not per write.

Type Parameters​

T​

T

Parameters​

fn​

() => T

The block that performs the writes.

Returns​

T

The value the block returns.