MCPcopy Index your code
hub / github.com/TanStack/query / App

Function App

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

Source from the content-addressed store, hash-verified

2724 }
2725
2726 function App() {
2727 const [show, setShow] = createSignal(true)
2728
2729 const toggle = () => setShow((s) => !s)
2730
2731 return (
2732 <div>
2733 <button onClick={toggle}>{show() ? 'hide' : 'show'}</button>
2734 {show() && <Page />}
2735 </div>
2736 )
2737 }
2738
2739 const rendered = render(() => (
2740 <QueryClientProvider client={queryClient}>

Callers

nothing calls this directly

Calls 1

cancelQueriesMethod · 0.45

Tested by

no test coverage detected