MCPcopy
hub / github.com/TanStack/query / Query

Function Query

packages/react-query/src/__tests__/useIsFetching.test.tsx:28–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26 }
27
28 function Query() {
29 const [ready, setReady] = React.useState(false)
30
31 useQuery({
32 queryKey: key,
33 queryFn: () => sleep(50).then(() => 'test'),
34 enabled: ready,
35 })
36
37 return <button onClick={() => setReady(true)}>setReady</button>
38 }
39
40 function Page() {
41 return (

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useQueryFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…