examples/vue/devtools-panel
| Name | Last commit message | Last commit date |
|---|---|---|
| .. | ||
README.md
TanStack Vue 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 theTanStack/queryrepository from the GitHub API.src/App.vuereads it withuseQuery(reposQueries.detail())and shows the repository's name, description and counts.src/App.vuealso rendersVueQueryDevtoolsPanelinline whileisOpenistrue. A button togglesisOpen, and the panel'son-closesets it back tofalse.
To run this example:
npm installnpm run dev