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

Function Page1

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useQueryFunction · 0.50

Tested by

no test coverage detected