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

Function Page1

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

Source from the content-addressed store, hash-verified

60 const queryClient2 = new QueryClient({ queryCache: queryCache2 })
61
62 function Page1() {
63 const { data } = useQuery({
64 queryKey: key1,
65 queryFn: () => sleep(10).then(() => 'test1'),
66 })
67
68 return (
69 <div>
70 <h1>{data}</h1>
71 </div>
72 )
73 }
74 function Page2() {
75 const { data } = useQuery({
76 queryKey: key2,

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…