useVaporAsyncCommand — async-aware command dispatch for Vapor components
used inside Suspense boundaries.
Vue 3.6.0-beta.10 introduced proper async component hydration under VDOM
Suspense. This composable wraps an AsyncCommandBus dispatch with reactive
loading/error state, making it safe for <script setup vapor> components
that await async operations. Error-boundary rendering and scheduler-flush
behavior around async components are Vue runtime concerns (per-beta detail:
CHANGELOG / whitepaper alignment log).
The dispatch function returns a Promise, matching the
AsyncCommandBus interface. Use this when your commands hit async transports
(HTTP bridge, WS bridge) and you need awaitable results.
useVaporAsyncCommand — async-aware command dispatch for Vapor components used inside Suspense boundaries.
Vue 3.6.0-beta.10 introduced proper async component hydration under VDOM Suspense. This composable wraps an AsyncCommandBus dispatch with reactive loading/error state, making it safe for
<script setup vapor>components that await async operations. Error-boundary rendering and scheduler-flush behavior around async components are Vue runtime concerns (per-beta detail: CHANGELOG / whitepaper alignment log).The dispatch function returns a Promise, matching the
AsyncCommandBus interface. Use this when your commands hit async transports
(HTTP bridge, WS bridge) and you need awaitable results.