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

Function Page2

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

Source from the content-addressed store, hash-verified

73 )
74 }
75 function Page2() {
76 const query = useQuery(() => ({
77 queryKey: key2,
78 queryFn: async () => {
79 await sleep(10)
80 return 'test2'
81 },
82 }))
83
84 return (
85 <div>
86 <h1>{query.data}</h1>
87 </div>
88 )
89 }
90
91 const rendered = render(() => (
92 <>

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…