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

Function createQueryClient

examples/angular/ssr-persist/src/app/query-client.ts:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10} as const
11
12export function createQueryClient() {
13 return new QueryClient({
14 defaultOptions: {
15 queries: {
16 ...SHARED_QUERY_DEFAULTS,
17 ...(isPlatformServer(inject(PLATFORM_ID)) ? { retry: false } : {}),
18 },
19 },
20 })
21}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected