Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

README.md

14 lines642 Bytes

1# TanStack React Query Devtools Panel Example
2​
3Embeds the devtools as a panel inside the page instead of the floating toggle.
4​
5## How it works
6​
7- `src/services/repos/queries.ts` defines `reposQueries.detail()` with `queryOptions`, and `src/services/repos/api.ts` fetches the `TanStack/query` repository from the GitHub API.
8- `src/index.tsx` reads it with `useQuery(reposQueries.detail())` and shows the repository's counts.
9- A button in `src/index.tsx` toggles `ReactQueryDevtoolsPanel`, which renders the devtools inline in the page, and its `onClose` callback hides the panel again.
10​
11To run this example:
12​
13- `npm install`
14- `npm run dev`