Wave your hands in the air and shout hooray because React Query comes with dedicated devtools! 🥳
When you begin your React Query journey, you'll want these devtools by your side. They help visualize all of the inner workings of React Query and will likely save you hours of debugging if you find yourself in a pinch!
To get going as fast as possible, do the following:
$ npm i --save react-query-devtools# or$ yarn add react-query-devtools
Using React Native? Try react-query-native-devtools instead.
Place the following code as high in your React app as you can. The closer it is to the root of the page, the better it will work!
import { ReactQueryDevtools } from 'react-query-devtools'function App() {return (<>{/* The rest of your application */}<ReactQueryDevtools initialIsOpen /></>)}
Visit the React Query Devtools Github Repo for more documentation!
The latest TanStack news, articles, and resources, sent to your inbox.