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

Function createQueryClient

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected