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

Function Query

packages/solid-query/src/__tests__/useIsFetching.test.tsx:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33 }
34
35 function Query() {
36 const [ready, setReady] = createSignal(false)
37
38 useQuery(() => ({
39 queryKey: key,
40 queryFn: () => sleep(50).then(() => 'test'),
41 enabled: ready(),
42 }))
43
44 return <button onClick={() => setReady(true)}>setReady</button>
45 }
46
47 function Page() {
48 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…