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

Function App

packages/preact-query/src/__tests__/useQuery.test.tsx:2948–2957  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2946 }
2947
2948 function App() {
2949 const [show, toggle] = useReducer((x) => !x, true)
2950
2951 return (
2952 <div>
2953 <button onClick={toggle}>{show ? 'hide' : 'show'}</button>
2954 {show && <Page />}
2955 </div>
2956 )
2957 }
2958
2959 const rendered = renderWithClient(queryClient, <App />)
2960

Callers

nothing calls this directly

Calls 2

useQueryFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected