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

Function App

packages/solid-query/src/__tests__/suspense.test.tsx:183–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 }
182
183 function App() {
184 const [show, setShow] = createSignal(false)
185
186 return (
187 <>
188 <Suspense fallback="loading">{show() && <Page />}</Suspense>
189 <button
190 aria-label="toggle"
191 onClick={() => setShow((prev) => !prev)}
192 />
193 </>
194 )
195 }
196
197 const rendered = renderWithClient(queryClient, () => <App />)
198

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected