Open History to see the last commit
1# TanStack Preact 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()`, a `queryOptions` factory keyed by `['repos', 'detail']` that fetches the TanStack Query repository from the GitHub API.
8- In `src/index.tsx`, `Example` passes it to `useQuery` and shows the repository's name, description, and counts.
9- `App` in `src/index.tsx` renders `PreactQueryDevtoolsPanel` inline when the toggle button is pressed, and the panel's `onClose` hides it again.
10β
11To run this example:
12β
13- `npm install`
14- `npm run dev`