Function batch

    • Group writes and flush effects synchronously at the end of fn. Effects coalesce on the microtask turn anyway; reach for batch only to run the woken effects before the call returns.

      Type Parameters

      • R

      Parameters

      • fn: () => R

      Returns R