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

Function App

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

Source from the content-addressed store, hash-verified

2913 }
2914
2915 function App() {
2916 const [show, toggle] = React.useReducer((x) => !x, true)
2917
2918 return (
2919 <div>
2920 <button onClick={toggle}>{show ? 'hide' : 'show'}</button>
2921 {show && <Page />}
2922 </div>
2923 )
2924 }
2925
2926 const rendered = renderWithClient(queryClient, <App />)
2927

Callers

nothing calls this directly

Calls 2

useQueryFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected