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

Function App

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

valueFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected