0
Fork 0
mirror of https://github.com/TanStack/query.git synced 2026-11-16 22:50:20 +00:00
query/examples/solid/devtools-panel
Wonsuk Choi cb62f4f2ed
chore(*): adopt '@tanstack/oxlint-config' and '@tanstack/oxfmt-config', and fix the newly reported lint errors (#12555)
* chore(*): adopt '@tanstack/oxlint-config' and '@tanstack/oxfmt-config', and fix the newly reported lint errors

* chore(pnpm-lock.yaml): run 'pnpm dedupe'

* chore(scripts): move 'oxlint/plugin.ts' to 'oxlint-plugin.ts' to match the flat layout of 'scripts'

* chore(pnpm-workspace.yaml): update '@typescript-eslint/parser' and '@typescript-eslint/rule-tester' to '^8.72.1' to match the deduped '@typescript-eslint/utils'
History 2026-11-16 22:25:25 +09:00
..
public docs(examples/solid): add 'devtools-panel', 'shadow-dom', 'playground', 'algolia' and 'chat' examples (#12423) 2026-10-28 10:11:54 +09:00
src chore(*): adopt '@tanstack/oxlint-config' and '@tanstack/oxfmt-config', and fix the newly reported lint errors (#12555) 2026-11-16 22:25:25 +09:00
.gitignore docs(examples): use each framework's template '.gitignore' in every example (#12592) 2026-11-13 10:57:29 +09:00
eslint.config.js docs(examples/solid): add 'devtools-panel', 'shadow-dom', 'playground', 'algolia' and 'chat' examples (#12423) 2026-10-28 10:11:54 +09:00
index.html docs(examples): unify page titles to 'TanStack <Framework> Query <Name> Example' and remove scaffold leftovers (#12580) 2026-11-12 14:54:59 +09:00
package.json ci: Version Packages (#12543) 2026-11-07 00:00:45 +01:00
README.md docs(examples): rewrite the READMEs, add the framework or router to example titles, and rename examples to '<feature>-<framework>' (#12583) 2026-11-12 16:58:15 +09:00
tsconfig.json docs(examples/solid): add 'devtools-panel', 'shadow-dom', 'playground', 'algolia' and 'chat' examples (#12423) 2026-10-28 10:11:54 +09:00
vite.config.ts docs(examples/solid): add 'devtools-panel', 'shadow-dom', 'playground', 'algolia' and 'chat' examples (#12423) 2026-10-28 10:11:54 +09:00

TanStack Solid 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.ts defines reposQueries.detail() with queryOptions, keyed by ['repos', 'detail'], and src/services/repos/api.ts fetches the TanStack/query repository from the GitHub API.
  • src/index.tsx reads the repository with useQuery in the Example component.
  • The same file renders SolidQueryDevtoolsPanel inside the page when the toggle button is clicked, and its onClose callback hides the panel again.

To run this example:

  • npm install
  • npm run dev