useCommandQuery — CQRS read-side composable with reactive state.
Wraps bus.query() with reactive data, loading, and lastError signals.
query() skips onBefore hooks (no auth gates, no loading spinners for reads)
but runs plugins, handlers, and afterHooks.
Supports both sync and async buses — if the result is a Promise, loading
stays true until it resolves.
useCommandQuery — CQRS read-side composable with reactive state.
Wraps bus.query() with reactive
data,loading, andlastErrorsignals. query() skips onBefore hooks (no auth gates, no loading spinners for reads) but runs plugins, handlers, and afterHooks.Supports both sync and async buses — if the result is a Promise, loading stays true until it resolves.