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

Function Suspended

packages/solid-query/src/__tests__/transition.test.tsx:22–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 const key = queryKey()
21
22 function Suspended() {
23 const state = useQuery(() => ({
24 queryKey: key,
25 queryFn: async () => {
26 await sleep(10)
27 return true
28 },
29 }))
30 return <Show when={state.data}>Message</Show>
31 }
32
33 function Page() {
34 const [showSignal, setShowSignal] = createSignal(false)

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…