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

Function Page2

packages/react-query/src/__tests__/QueryClientProvider.test.tsx:74–85  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 )
73 }
74 function Page2() {
75 const { data } = useQuery({
76 queryKey: key2,
77 queryFn: () => sleep(10).then(() => 'test2'),
78 })
79
80 return (
81 <div>
82 <h1>{data}</h1>
83 </div>
84 )
85 }
86
87 const rendered = render(
88 <>

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…