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

Function App

packages/react-query/src/__tests__/usePrefetchInfiniteQuery.test.tsx:99–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 }
98
99 function App() {
100 usePrefetchInfiniteQuery({ ...queryOpts, pages: data.length })
101
102 return (
103 <React.Suspense fallback={<Fallback />}>
104 <Suspended
105 queryOpts={queryOpts}
106 renderPage={(page) => <div>data: {page.data}</div>}
107 />
108 </React.Suspense>
109 )
110 }
111
112 const rendered = renderWithClient(queryClient, <App />)
113

Callers

nothing calls this directly

Calls 1

usePrefetchInfiniteQueryFunction · 0.50

Tested by

no test coverage detected