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

Function FirstQuery

packages/react-query/src/__tests__/usePrefetchQuery.test.tsx:260–268  ·  view source on GitHub ↗
({ children }: { children?: React.ReactNode })

Source from the content-addressed store, hash-verified

258 const Fallback = vi.fn().mockImplementation(() => <div>Loading...</div>)
259
260 function FirstQuery({ children }: { children?: React.ReactNode }) {
261 const state = useSuspenseQuery(firstQueryOpts)
262 return (
263 <div>
264 <div>data: {String(state.data)}</div>
265 {children}
266 </div>
267 )
268 }
269
270 function SecondQuery({ children }: { children?: React.ReactNode }) {
271 const state = useSuspenseQuery(secondQueryOpts)

Callers

nothing calls this directly

Calls 1

useSuspenseQueryFunction · 0.50

Tested by

no test coverage detected