MCPcopy Create free account
hub / github.com/TanStack/query / createQueryClient

Function createQueryClient

examples/lit/ssr/src/main.ts:10–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10function createQueryClient(): QueryClient {
11 return new QueryClient({
12 defaultOptions: {
13 queries: {
14 retry: false,
15 staleTime: QUERY_STALE_TIME,
16 },
17 },
18 })
19}
20
21function readDehydratedState(): DehydratedState {
22 const stateElement = document.getElementById('__QUERY_STATE__')

Callers 1

bootstrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected