Number of dispatches currently in flight across all subscribers.
True when inFlight > 0. Bind to button disabled etc.
Most recent error (across all subscribers).
Ring buffer of recent errors, newest last, capped at errorCap.
Current size of the errors buffer.
Wipe accumulated errors.
Manually unhook. Most callers don't need this — tryAutoCleanup
hooks Vue's scope/unmount lifecycle.
useSharedCommandState — one set of reactive signals shared across every caller, instead of two signals (
loading,lastError) per call.Designed for component-heavy pages where many components need to react to "is anything in flight?" or "what was the last error?". Replaces
N × useCommand()allocations with a single shared state per bus.Memory math: 50 components × 2 signals each = 100 signal nodes today. With shared state: ~5 signal nodes total + a counter, regardless of subscriber count.