batch function
Runs `fn` and notifies effects once at the end, not after each write.
import { batch } from '@dioramajs/diorama/core'function batch<T>(fn: () => T): TParameters
| Name | Type | Description |
|---|---|---|
fn | () => T |
Also exported from @dioramajs/core.
Defined in packages/core/src/kernel/signals.ts.