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

Function incrementSsrQueryControllerCreationCount

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

Source from the content-addressed store, hash-verified

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

Callers 1

willUpdateMethod · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected