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

Function App

packages/preact-query/src/__tests__/usePrefetchInfiniteQuery.test.tsx:100–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

usePrefetchInfiniteQueryFunction · 0.50

Tested by

no test coverage detected