Open History to see the last commit
TanStack React 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()withqueryOptions, andsrc/services/repos/api.tsfetches theTanStack/queryrepository from the GitHub API.src/index.tsxreads it withuseQuery(reposQueries.detail())and shows the repository's counts.- A button in
src/index.tsxtogglesReactQueryDevtoolsPanel, which renders the devtools inline in the page, and itsonClosecallback hides the panel again.
To run this example:
npm installnpm run dev