Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"fixed": [],
"fixed": [
[
"@tanstack/form-devtools",
"@tanstack/react-form-devtools",
"@tanstack/solid-form-devtools"
]
],
"linked": [],
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/petite-ducks-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@tanstack/react-form-devtools': minor
'@tanstack/solid-form-devtools': minor
'@tanstack/form-devtools': minor
---

Migrated to devtools utils, adds support for solid devtools. Renamed plugin to reflect tanstack plugin schema (FormDevtoolsPlugin to formDevtoolsPlugin)
1 change: 1 addition & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ coverage:
ignore:
- 'packages/form-devtools'
- 'packages/react-form-devtools'
- 'packages/solid-form-devtools'
6 changes: 3 additions & 3 deletions docs/framework/react/guides/devtools.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,19 @@ createRoot(document.getElementById('root')!).render(
)
```

Import the `FormDevtoolsPlugin` from **TanStack Form** and provide it to the `TanStackDevtools` component.
Import the `formDevtoolsPlugin` from **TanStack Form** and provide it to the `TanStackDevtools` component.

```tsx
import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

import App from './App'

createRoot(document.getElementById('root')!).render(
<StrictMode>
<App />

<TanStackDevtools plugins={[FormDevtoolsPlugin()]} />
<TanStackDevtools plugins={[formDevtoolsPlugin()]} />
</StrictMode>,
)
```
Expand Down
60 changes: 60 additions & 0 deletions docs/framework/solid/guides/devtools.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
id: devtools
title: Devtools
---

TanStack Form comes with a ready to go suit of devtools.

## Setup

Install the [TanStack Devtools](https://tanstack.com/devtools/latest/docs/quick-start) library and the [TanStack Form plugin](http://npmjs.com/package/@tanstack/solid-form-devtools), from the framework adapter that your working in (in this case `@tanstack/solid-devtools`, and `@tanstack/solid-form-devtools`).

```bash
npm i @tanstack/solid-devtools
npm i @tanstack/solid-form-devtools
```

Next in the root of your application import the `TanStackDevtools`.

```tsx
import { TanStackDevtools } from '@tanstack/solid-devtools'

import App from './App'

render(
() => (
<>
<App />

<TanStackDevtools />
</>
),
root!,
)
```

Import the `formDevtoolsPlugin` from **TanStack Form** and provide it to the `TanStackDevtools` component.

```tsx
import { TanStackDevtools } from '@tanstack/solid-devtools'
import { formDevtoolsPlugin } from '@tanstack/solid-form-devtools'

import App from './app'

const root = document.getElementById('root')

render(
() => (
<>
<App />

<TanStackDevtools plugins={[formDevtoolsPlugin()]} />
</>
),
root!,
)
```

Finally add any additional configuration you desire to the `TanStackDevtools` component, more information can be found under the [TanStack Devtools Configuration](https://tanstack.com/devtools/) section.

A complete working example can be found in our [examples section](https://tanstack.com/form/latest/docs/framework/solid/examples/devtools).
2 changes: 1 addition & 1 deletion examples/react/array/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"react": "^19.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/array/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { createRoot } from 'react-dom/client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { useForm } from '@tanstack/react-form'

interface Person {
Expand Down Expand Up @@ -85,7 +85,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion examples/react/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"react": "^19.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/devtools/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

import App from './App'

Expand All @@ -11,7 +11,7 @@ createRoot(document.getElementById('root')!).render(
<App />

<TanStackDevtools
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
eventBusConfig={{ debug: true }}
/>
</StrictMode>,
Expand Down
2 changes: 1 addition & 1 deletion examples/react/dynamic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"react": "^19.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/dynamic/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client'
import { z } from 'zod'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { revalidateLogic, useForm } from '@tanstack/react-form'

import type { AnyFieldApi } from '@tanstack/react-form'
Expand Down Expand Up @@ -125,7 +125,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"react": "^19.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRoot } from 'react-dom/client'

import { useForm } from '@tanstack/react-form'
import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

async function sleep(ms: number) {
return new Promise((resolve) => {
Expand Down Expand Up @@ -141,7 +141,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</>,
)
2 changes: 1 addition & 1 deletion examples/react/large-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"react": "^19.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/large-form/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { createRoot } from 'react-dom/client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

import App from './App.tsx'

Expand All @@ -14,7 +14,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion examples/react/query-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"@tanstack/react-query": "^5.89.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/query-integration/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { createRoot } from 'react-dom/client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { useForm } from '@tanstack/react-form'
import {
QueryClient,
Expand Down Expand Up @@ -174,7 +174,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion examples/react/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"react": "^19.0.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/simple/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react'
import { createRoot } from 'react-dom/client'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { useForm } from '@tanstack/react-form'

import type { AnyFieldApi } from '@tanstack/react-form'
Expand Down Expand Up @@ -128,7 +128,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion examples/react/standard-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"arktype": "^2.1.22",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/standard-schema/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as v from 'valibot'
import { z } from 'zod'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { useForm } from '@tanstack/react-form'

import type { AnyFieldApi } from '@tanstack/react-form'
Expand Down Expand Up @@ -155,7 +155,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
2 changes: 1 addition & 1 deletion examples/react/tanstack-start/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node .output/server/index.mjs"
},
"dependencies": {
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"@tanstack/react-router": "1.131.50",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/tanstack-start/src/routes/__root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { HeadContent, Scripts, createRootRoute } from '@tanstack/react-router'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

export const Route = createRootRoute({
head: () => ({
Expand Down Expand Up @@ -30,7 +30,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
<body>
{children}
<Scripts />
<TanStackDevtools plugins={[FormDevtoolsPlugin()]} />
<TanStackDevtools plugins={[formDevtoolsPlugin()]} />
</body>
</html>
)
Expand Down
2 changes: 1 addition & 1 deletion examples/react/ui-libraries/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@mantine/core": "7.17.8",
"@mantine/hooks": "7.17.8",
"@mui/material": "6.5.0",
"@tanstack/react-devtools": "^0.7.0",
"@tanstack/react-devtools": "^0.7.7",
"@tanstack/react-form": "^1.23.8",
"@tanstack/react-form-devtools": "^0.1.8",
"@yme/lay-postcss": "0.1.0",
Expand Down
4 changes: 2 additions & 2 deletions examples/react/ui-libraries/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'

import { TanStackDevtools } from '@tanstack/react-devtools'
import { FormDevtoolsPlugin } from '@tanstack/react-form-devtools'
import { formDevtoolsPlugin } from '@tanstack/react-form-devtools'

import { createRoot } from 'react-dom/client'
import { createTheme } from '@mui/material/styles'
Expand Down Expand Up @@ -41,7 +41,7 @@ createRoot(rootElement).render(

<TanStackDevtools
config={{ hideUntilHover: true }}
plugins={[FormDevtoolsPlugin()]}
plugins={[formDevtoolsPlugin()]}
/>
</React.StrictMode>,
)
Loading
Loading