examples/preact/devtools-panel
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
TanStack Preact Query Devtools Panel Example#
Embeds the devtools as a panel inside the page instead of the floating toggle.
How it works#
src/services/repos/queries.tsdefinesreposQueries.detail(), aqueryOptionsfactory keyed by['repos', 'detail']that fetches the TanStack Query repository from the GitHub API.- In
src/index.tsx,Examplepasses it touseQueryand shows the repository's name, description, and counts. Appinsrc/index.tsxrendersPreactQueryDevtoolsPanelinline when the toggle button is pressed, and the panel'sonClosehides it again.
To run this example:
npm installnpm run dev