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

Function Content

packages/react-query/src/__tests__/useSuspenseQuery.test.tsx:1005–1011  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1003 const key = queryKey()
1004
1005 function Content() {
1006 const { data } = useSuspenseQuery({
1007 queryKey: key,
1008 queryFn: () => sleep(10000).then(() => 'fetched'),
1009 })
1010 return <div>data: {data}</div>
1011 }
1012
1013 function Page() {
1014 return (

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useSuspenseQueryFunction · 0.50

Tested by

no test coverage detected