MCPcopy
hub / github.com/TanStack/query / Page

Function Page

packages/react-query/src/__tests__/HydrationBoundary.test.tsx:38–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36 const queryClient = new QueryClient()
37
38 function Page() {
39 const { data } = useQuery({
40 queryKey: ['string'],
41 queryFn: () => sleep(20).then(() => ['string']),
42 })
43 return (
44 <div>
45 <h1>{data}</h1>
46 </div>
47 )
48 }
49
50 const rendered = render(
51 <QueryClientProvider client={queryClient}>

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useQueryFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…