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

Function App

packages/solid-query/src/__tests__/useQuery.test.tsx:2380–2391  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2378 }
2379
2380 function App() {
2381 const [show, setShow] = createSignal(true)
2382
2383 const toggle = () => setShow((s) => !s)
2384
2385 return (
2386 <div>
2387 <button onClick={toggle}>{show() ? 'hide' : 'show'}</button>
2388 {show() && <Page />}
2389 </div>
2390 )
2391 }
2392
2393 const rendered = renderWithClient(queryClient, () => <App />)
2394

Callers

nothing calls this directly

Calls 2

valueFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected