Framework adapters
Every adapter uses @omni-async/core for request ordering and cancellation, then stores results in its framework's own state. Choose the package matching the component runtime; use createAsync directly in vanilla JavaScript or framework-independent services.
| API | Purpose |
|---|---|
useAsync | Configurable operation with concurrency, fallback data, callbacks, and equality |
useQuery | Latest-request query with optional initial data |
useAction | Manually triggered action |
useFetch | Mount-triggered, abortable fetch helper |
The React and Vue adapters expose { data, error, loading, trigger }. Svelte exposes the state fields as readable stores.