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

Function App

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

Source from the content-addressed store, hash-verified

2314 }
2315
2316 function App() {
2317 const [show, setShow] = createSignal(true)
2318
2319 const toggle = () => setShow((s) => !s)
2320
2321 return (
2322 <div>
2323 <button onClick={toggle}>{show() ? 'hide' : 'show'}</button>
2324 {show() && <Page />}
2325 </div>
2326 )
2327 }
2328
2329 const rendered = renderWithClient(queryClient, () => <App />)
2330

Callers

nothing calls this directly

Calls 3

idFunction · 0.85
valueFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected