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

Function SecondQuery

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

Source from the content-addressed store, hash-verified

267 }
268
269 function SecondQuery({ children }: { children?: React.ReactNode }) {
270 const state = useSuspenseQuery(secondQueryOpts)
271 return (
272 <div>
273 <div>data: {String(state.data)}</div>
274 {children}
275 </div>
276 )
277 }
278
279 function ThirdQuery() {
280 const state = useSuspenseQuery(thirdQueryOpts)

Callers

nothing calls this directly

Calls 1

useSuspenseQueryFunction · 0.50

Tested by

no test coverage detected