Svelte guides
These guides cover @pbvex/svelte, a Svelte 5 rune layer over @pbvex/client.
Topics
- Client and query lifecycle —
setClient,getClient, and automatic watch cleanup. - Public functions — rune-backed
useQuery, mutations, actions, and conditional queries. - Testing — mounting a Svelte component and asserting rune state.
Core concepts
setClientstores aClientin Svelte context during component initialization.useQueryreturns reactiveQueryState<T>with{ data, error, isLoading }.- Pass an args getter to make a query follow component state or
$props(). useMutationanduseActionreturn typed async callables.skipis the exported string literal'skip'for conditional queries.
Cross-links
- Client semantics are documented in the client guides.
- Server-side concepts are in the core guides: Authoring functions, Schema, Authentication.