MCPcopy Index your code
hub / github.com/TanStack/query / MyComponent

Function MyComponent

packages/react-query/src/__tests__/useQuery.promise.test.tsx:42–46  ·  view source on GitHub ↗
(props: { promise: Promise<string> })

Source from the content-addressed store, hash-verified

40 const renderStream = createRenderStream({ snapshotDOM: true })
41
42 function MyComponent(props: { promise: Promise<string> }) {
43 const data = React.use(props.promise)
44 useTrackRenders()
45 return <>{data}</>
46 }
47
48 function Loading() {
49 useTrackRenders()

Callers

nothing calls this directly

Calls 2

useTheQueryFunction · 0.85
useQueryFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…