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

Function Suspended

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

sleepFunction · 0.90
useQueryFunction · 0.50

Tested by

no test coverage detected