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

Function Page1

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useQueryFunction · 0.50

Tested by

no test coverage detected