MCPcopy
hub / github.com/TanStack/query / App

Function App

packages/react-query/src/__tests__/useQuery.test.tsx:3001–3010  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2999 }
3000
3001 function App() {
3002 const [show, toggle] = React.useReducer((x) => !x, true)
3003
3004 return (
3005 <div>
3006 <button onClick={toggle}>{show ? 'hide' : 'show'}</button>
3007 {show && <Page />}
3008 </div>
3009 )
3010 }
3011
3012 const rendered = renderWithClient(queryClient, <App />)
3013

Callers

nothing calls this directly

Calls 2

useQueryFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected