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

Function FirstQuery

packages/preact-query/src/__tests__/usePrefetchQuery.test.tsx:261–269  ·  view source on GitHub ↗
({ children }: { children?: VNode })

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

useSuspenseQueryFunction · 0.50

Tested by

no test coverage detected