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

Function Page

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

Source from the content-addressed store, hash-verified

32 }
33
34 function Page() {
35 const [showSignal, setShowSignal] = createSignal(false)
36
37 return (
38 <div>
39 <button
40 aria-label="toggle"
41 onClick={() =>
42 startTransition(() => setShowSignal((value) => !value))
43 }
44 >
45 {showSignal() ? 'Hide' : 'Show'}
46 </button>
47 <Suspense fallback="Loading">
48 <Show when={showSignal()}>
49 <Suspended />
50 </Show>
51 </Suspense>
52 </div>
53 )
54 }
55
56 const rendered = renderWithClient(queryClient, () => <Page />)
57

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected