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

Function App

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

useQueryFunction · 0.50
cancelQueriesMethod · 0.45

Tested by

no test coverage detected