mirror of
https://github.com/TanStack/devtools.git
synced 2026-11-16 10:49:48 +00:00
* ci: stop Release test:lib flakes from runner overload Release runs nx run-many across every package at nx.json parallel: 5. That oversubscribes GitHub-hosted runners and flakes two test:lib jobs: - @tanstack/devtools-ui: default 5s timeout on Solid + goober mounts - @tanstack/devtools: vitest worker RPC stall (onTaskUpdate) PR already caps NX_PARALLEL at 3 (#478). Apply the same cap to Release, and raise the 30s test/hook timeouts on the remaining heavy UI packages. * chore: upgrade Vitest to v4 Bump vitest from 3.2.4 to 4.1.10. Vitest 4 replaces the 60s onTaskUpdate RPC timeout that failed Release after every @tanstack/devtools test had already passed. Migrate defineWorkspace to test.projects. Turn off Solid HMR in tests so the module runner does not load /@solid-refresh. Update mocks and timers that Vitest 4 types or isolates differently. |
History
|
|
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.docs.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
This package is still under active development and might have breaking changes in the future. Please use it with caution.
Usage
import { TanStackDevtools } from '@tanstack/solid-devtools'
import { TanStackRouterDevtoolsPanel } from '@tanstack/solid-router-devtools'
function App() {
return (
<div>
<h1>My App</h1>
<TanStackDevtools
plugins={[
{
name: 'TanStack Router',
render: <TanStackRouterDevtoolsPanel router={router} />,
},
]}
/>
</div>
)
}
Creating plugins
In order to create a plugin for TanStack Devtools, you can use the plugins prop of the TanStackDevtools component. Here's an example of how to create a simple plugin:
import { TanStackDevtools } from '@tanstack/solid-devtools'
function App() {
return (
<div>
<h1>My App</h1>
<TanStackDevtools
plugins={[
{
id: 'your-plugin-id',
name: 'Your Plugin',
render: <CustomPluginComponent />,
},
]}
/>
</div>
)
}