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

Function App

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

Source from the content-addressed store, hash-verified

2923 }
2924
2925 function App() {
2926 const [show, toggle] = React.useReducer((x) => !x, true)
2927
2928 return (
2929 <div>
2930 <button onClick={toggle}>{show ? 'hide' : 'show'}</button>
2931 {show && <Page />}
2932 </div>
2933 )
2934 }
2935
2936 const rendered = renderWithClient(queryClient, <App />)
2937

Callers

nothing calls this directly

Calls 2

useQueryFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected