()
| 10 | const queryClient = new QueryClient() |
| 11 | |
| 12 | export default function App() { |
| 13 | const [isOpen, setIsOpen] = React.useState(false) |
| 14 | |
| 15 | return ( |
| 16 | <QueryClientProvider client={queryClient}> |
| 17 | <Example /> |
| 18 | <button |
| 19 | onClick={() => setIsOpen(!isOpen)} |
| 20 | >{`${isOpen ? 'Close' : 'Open'} the devtools panel`}</button> |
| 21 | {isOpen && <ReactQueryDevtoolsPanel onClose={() => setIsOpen(false)} />} |
| 22 | </QueryClientProvider> |
| 23 | ) |
| 24 | } |
| 25 | |
| 26 | function Example() { |
| 27 | const { isPending, error, data, isFetching } = useQuery({ |
nothing calls this directly
no outgoing calls
no test coverage detected