Skip to content

BatchFactory type

Home > @rimitive/signals > BatchFactory

The batch function type - groups multiple signal writes into a single update cycle.

Signature:

export type BatchFactory = <T>(fn: () => T) => T;