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

Function App

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

Source from the content-addressed store, hash-verified

2932 }
2933
2934 function App() {
2935 const [show, toggle] = React.useReducer((x) => !x, true)
2936
2937 return (
2938 <div>
2939 <button onClick={toggle}>{show ? 'hide' : 'show'}</button>
2940 {show && <Page />}
2941 </div>
2942 )
2943 }
2944
2945 const rendered = renderWithClient(queryClient, <App />)
2946

Callers

nothing calls this directly

Calls 2

useQueryFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected