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

Function Page1

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

Source from the content-addressed store, hash-verified

58 const queryClient2 = new QueryClient({ queryCache: queryCache2 })
59
60 function Page1() {
61 const query = useQuery(() => ({
62 queryKey: key1,
63 queryFn: async () => {
64 await sleep(10)
65 return 'test1'
66 },
67 }))
68
69 return (
70 <div>
71 <h1>{query.data}</h1>
72 </div>
73 )
74 }
75 function Page2() {
76 const query = useQuery(() => ({
77 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…