Reference

createQuery

Creates a reactive query observer backed by a `QueryClient`. The observer exposes a `ReadonlyCell` result, subscribes to exact cache updates, can auto-fetch in the browser, and must be disposed when the consuming scope ends.

Signature

function createQuery<TData>(client: QueryClient, options: CreateQueryOptions<TData>): QueryObserver<TData>