Reference

runWithQueryClient

Runs a callback with a server-scoped query client. Node runtimes need `AsyncLocalStorage` support or a custom storage installed with `installQueryAsyncStorage()`.

Signature

function runWithQueryClient<T>(client: QueryClient, fn: (): T): T