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

Function Page1

packages/solid-query/src/__tests__/QueryClientProvider.test.tsx:57–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useQueryFunction · 0.50

Tested by

no test coverage detected