mirror of
https://github.com/TanStack/query.git
synced 2026-11-16 22:50:20 +00:00
* 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
|
|
|---|---|---|
| .. | ||
| public | ||
| src | ||
| .gitignore | ||
| eslint.config.js | ||
| index.html | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
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.tsdefinesreposQueries.detail()withqueryOptions, keyed by['repos', 'detail'], andsrc/services/repos/api.tsfetches theTanStack/queryrepository from the GitHub API.src/index.tsxreads the repository withuseQueryin theExamplecomponent.- The same file renders
SolidQueryDevtoolsPanelinside the page when the toggle button is clicked, and itsonClosecallback hides the panel again.
To run this example:
npm installnpm run dev