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

Function incrementSsrQueryControllerCreationCount

examples/lit/ssr/src/app.ts:9–16  ·  view source on GitHub ↗
(
  queryClient: QueryClient,
)

Source from the content-addressed store, hash-verified

7const ssrQueryControllerCreationCounts = new WeakMap<QueryClient, number>()
8
9function incrementSsrQueryControllerCreationCount(
10 queryClient: QueryClient,
11): void {
12 ssrQueryControllerCreationCounts.set(
13 queryClient,
14 (ssrQueryControllerCreationCounts.get(queryClient) ?? 0) + 1,
15 )
16}
17
18export function resetSsrQueryControllerCreationCount(
19 queryClient: QueryClient,

Callers 1

willUpdateMethod · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected