vapor-chamber API reference - v1.16.0
    Preparing search index...

    Type Alias BatchingHttpBridgeOptions

    BatchingHttpBridgeOptions: HttpBridgeOptions & { window?: "microtask" | number }

    Type Declaration

    • Optionalwindow?: "microtask" | number

      How long to hold the queue open before flushing. • 'microtask' (default) — coalesce every dispatch issued within the same JS tick (queueMicrotask). Zero added latency: a synchronous burst of dispatches (e.g. a formSet immediately followed by a submit) becomes one HTTP round trip. • a number (ms) — hold the queue open for a small window instead, catching dispatches from separate ticks (e.g. two quick, distinct user interactions) at the cost of that much added latency.