[v2] chore(examples): devtools and StrictMode in every React example #2406
alpha fromrefs/pull/2406/head·opened 🎯 Changes#
Part of #2305. This covers the devtools item ("Include TanStackDevtools in every example with hideUntilHover: false") and StrictMode in every example.
Devtools
hideUntilHover: true→falseinreact/simple,react/large-form,react/multi-step-wizardandreact/query-integration, the only React examples still hiding the panel.- Added devtools to
react/compiler, set up the same way asreact/simple:TanStackDevtoolswithformDevtoolsPlugin(), rendered next to<App />. - Added devtools to
react/next-server-actionsandreact/next-server-actions-zod, reusing the'use client'Devtoolscomponent fromreact/nextjsand rendering it inpage.tsxnext toClientComp. - The new dependencies use the same versions as the other React examples, and
pnpm-lock.yamlonly gains those entries.
StrictMode (second commit)
- Wrapped
<App />inReact.StrictModein the 6 Vite examples that rendered without it:array,basic,basic-splitting-form,field-groups,ui-integration-dnd-kitandui-integration-shadcn, same pattern assimpleandlarge-form. react/nextjs: setreactStrictMode: trueinnext.config.ts, matching the two server-actions examples.react/expo:index.tsregisters a smallRootthat rendersAppinsideStrictMode(createElement, since the entry is.ts).- Already in StrictMode and unchanged:
compiler,large-form,multi-step-wizard,query-integration,simple,standard-schema, andtanstack-start(Start's default client entry hydrates inside<StrictMode>). The other frameworks have no StrictMode equivalent.
Not included:
- Solid examples. On
alpha,@tanstack/solid-form-devtoolscurrently exports only a placeholder, so there's no form plugin to add yet. Happy to follow up once it lands. react/expo. The web devtools panel doesn't apply to React Native.
I built all 7 devtools examples locally (vite build and next build), and ran tsc plus vite build on each StrictMode example (tsc for nextjs and expo). pnpm test:sherif, pnpm test:knip, eslint and prettier pass on the changed files.
✅ Checklist#
- I have followed the steps in the Contributing guide.
- I have tested code changes locally with
pnpm test:pr, or these tests do not apply to this pull request. (Examples only; I built each changed example and ran sherif, knip, eslint and prettier.) - I fully understand the code in this pull request, including any code generated with AI assistance.
🚀 Release Impact#
- This change affects published code, and I have generated a changeset.
- This change is docs/CI/dev-only (no release).
@LeCarbonator, ready for review whenever you get to it. It's independent of #2405 and doesn't touch the same files. (StrictMode was briefly a separate PR, #2409; I moved it here to keep the series smaller.)
Summary by CodeRabbit#
- New Features
- Added form developer tools to the React Compiler and Next.js server action examples.
- Updates
- Developer tools are now visible by default in several React examples instead of appearing only on hover.
- Several React examples now run with Strict Mode enabled.
- 1
dasjideepak(GitHub profile, opens in a new tab) changed the title
View your CI Pipeline Execution ↗ for commit d063eb3dd03b984dfa6a48fc5b2a10810ff6a291
Command Status Duration Result nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded 3m 41s View ↗ nx run-many --target=build --exclude=examples/**✅ Succeeded 1s View ↗
☁️ Nx Cloud last updated this comment at
2026-09-27 14:59:25UTCMore templates
- @tanstack/form-example-angular-array
- @tanstack/form-example-angular-basic
- @tanstack/form-example-angular-basic-splitting-form
- @tanstack/form-example-angular-field-groups
- @tanstack/form-example-angular-large-form
- @tanstack/form-example-angular-multi-step-wizard
- @tanstack/form-example-angular-query-integration
- @tanstack/form-example-angular-simple
- @tanstack/form-example-angular-standard-schema
- @tanstack/form-example-lit-array
- @tanstack/form-example-lit-basic
- @tanstack/form-example-lit-basic-splitting-form
- @tanstack/form-example-lit-field-groups
- @tanstack/form-example-lit-large-form
- @tanstack/form-example-lit-multi-step-wizard
- @tanstack/form-example-lit-query-integration
- @tanstack/form-example-lit-simple
- @tanstack/form-example-lit-standard-schema
- @tanstack/form-example-preact-array
- @tanstack/form-example-preact-basic
- @tanstack/form-example-preact-basic-splitting-form
- @tanstack/form-example-preact-field-groups
- @tanstack/form-example-preact-large-form
- @tanstack/form-example-preact-multi-step-wizard
- @tanstack/form-example-preact-query-integration
- @tanstack/form-example-preact-simple
- @tanstack/form-example-preact-standard-schema
- @tanstack/form-example-solid-array
- @tanstack/form-example-solid-basic
- @tanstack/form-example-solid-basic-splitting-form
- @tanstack/form-example-solid-field-groups
- @tanstack/form-example-solid-large-form
- @tanstack/form-example-solid-multi-step-wizard
- @tanstack/form-example-solid-query-integration
- @tanstack/form-example-solid-simple
- @tanstack/form-example-solid-standard-schema
- @tanstack/template-example-react-array
- @tanstack/template-example-react-basic
- @tanstack/template-example-react-basic-splitting-form
- @tanstack/form-example-react-compiler
- @tanstack/form-example-react-expo
- @tanstack/template-example-react-field-group
- @tanstack/form-example-react-large-form
- @tanstack/form-example-react-multi-step-wizard
- @tanstack/form-example-react-next-server-actions
- @tanstack/form-example-react-next-server-actions-zod
- @tanstack/template-example-react-nextjs
- @tanstack/form-example-react-query-integration
- @tanstack/form-example-react-simple
- @tanstack/form-example-react-standard-schema
- tanstack-start-example-basic
- @tanstack/tanstack-form-example-react-dnd-kit
- @tanstack/tanstack-form-example-react-shadcn-ui
- @tanstack/form-example-vue-array
- @tanstack/form-example-vue-large-form
- @tanstack/form-example-vue-multi-step-wizard
- @tanstack/form-example-vue-simple
- @tanstack/form-example-vue-standard-schema
- @tanstack/form-example-svelte-array
- @tanstack/form-example-svelte-basic
- @tanstack/form-example-svelte-basic-splitting-form
- @tanstack/form-example-svelte-field-groups
- @tanstack/form-example-svelte-large-form
- @tanstack/form-example-svelte-multi-step-wizard
- @tanstack/form-example-svelte-query-integration
- @tanstack/form-example-svelte-simple
- @tanstack/form-example-svelte-standard-schema
@tanstack/angular-form
npm i https://pkg.pr.new/@tanstack/angular-form@2406@tanstack/form-core
npm i https://pkg.pr.new/@tanstack/form-core@2406@tanstack/form-devtools
npm i https://pkg.pr.new/@tanstack/form-devtools@2406@tanstack/lit-form
npm i https://pkg.pr.new/@tanstack/lit-form@2406@tanstack/preact-form
npm i https://pkg.pr.new/@tanstack/preact-form@2406@tanstack/react-form
npm i https://pkg.pr.new/@tanstack/react-form@2406@tanstack/react-form-devtools
npm i https://pkg.pr.new/@tanstack/react-form-devtools@2406@tanstack/react-form-nextjs
npm i https://pkg.pr.new/@tanstack/react-form-nextjs@2406@tanstack/react-form-start
npm i https://pkg.pr.new/@tanstack/react-form-start@2406@tanstack/solid-form
npm i https://pkg.pr.new/@tanstack/solid-form@2406@tanstack/solid-form-devtools
npm i https://pkg.pr.new/@tanstack/solid-form-devtools@2406@tanstack/svelte-form
npm i https://pkg.pr.new/@tanstack/svelte-form@2406@tanstack/vue-form
npm i https://pkg.pr.new/@tanstack/vue-form@2406commit:
d063eb3:warning: Please install the
to ensure uploads and comments are reliably processed by Codecov.
Codecov Report#
:white_check_mark: All modified and coverable lines are covered by tests. :warning: Please upload report for BASE (
alpha@541abc8). Learn more about missing BASE report. :exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.Additional details and impacted files
@@ Coverage Diff @@ ## alpha #2406 +/- ## ======================================== Coverage ? 94.98% ======================================== Files ? 114 Lines ? 4411 Branches ? 990 ======================================== Hits ? 4190 Misses ? 211 Partials ? 10:umbrella: View full report in Codecov by Harness. :loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
Sign in to join this conversation.
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: TanStack/form/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
ec343662-2d6f-485f-8325-a7aebd7b9ace📥 Commits
Reviewing files that changed from the base of the PR and between f91e059e43f99ba83844ee8774794277ee8d68ae and d063eb3dd03b984dfa6a48fc5b2a10810ff6a291.
📒 Files selected for processing (8)
examples/react/array/src/index.tsxexamples/react/basic-splitting-form/src/index.tsxexamples/react/basic/src/index.tsxexamples/react/expo/index.tsexamples/react/field-groups/src/index.tsxexamples/react/nextjs/next.config.tsexamples/react/ui-integration-dnd-kit/src/index.tsxexamples/react/ui-integration-shadcn/src/index.tsxIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
Walkthrough#
Several React examples add TanStack Form Devtools. Other examples change devtools visibility or enable React Strict Mode.
Changes#
React Devtools examples
examples/react/compiler/*,examples/react/next-server-actions*/src/app/*,examples/react/next-server-actions*/package.jsonexamples/react/large-form/src/index.tsx,examples/react/multi-step-wizard/src/index.tsx,examples/react/query-integration/src/index.tsx,examples/react/simple/src/index.tsxhideUntilHovertofalse.React Strict Mode examples
examples/react/array/src/index.tsx,examples/react/basic-splitting-form/src/index.tsx,examples/react/basic/src/index.tsx,examples/react/expo/index.ts,examples/react/field-groups/src/index.tsx,examples/react/nextjs/next.config.ts,examples/react/ui-integration-dnd-kit/src/index.tsx,examples/react/ui-integration-shadcn/src/index.tsxreactStrictModein Next.js.Priority: ⬇️ Low
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Feature
Merge Risk: ⚪ Minimal · up to
d063eThe PR adds Form Devtools, changes their visibility, and enables Strict Mode in React examples. Inspection found no concrete defect requiring resolution, so no material merge risk remains.
Security Architecture Review#
Security architecture risk: 🔵 Low · up to
d063eThe new devtools UI is confined to examples. The reviewed components do not receive page data or gain server-action authority. No introduced security issue was identified, but incomplete coverage prevents a negligible-risk conclusion.
Retained concerns No architecture-level concerns identified.
Security review details
Security Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)#
✅ Passed checks (4 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share