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

Function App

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected