BatchFactory type
Home > @rimitive/signals > BatchFactory
BatchFactory type
Section titled “BatchFactory type”The batch function type - groups multiple signal writes into a single update cycle.
Signature:
export type BatchFactory = <T>(fn: () => T) => T;