Loading...
Loading...
TanStack Form v1 for Next.js 16 with Server Actions, Zod validation, and shadcn/ui integration. Use when building forms, validation, multi-step wizards, or dynamic field arrays.
npx skill4agent add fusengine/agents nextjs-tanstack-formTeamCreate| Feature | Benefit |
|---|---|
| Signal-based state | Minimal re-renders, optimal performance |
| Full TypeScript | DeepKeys, DeepValue inference |
| Server Actions native | Built-in Next.js 16 integration |
| Zod adapter | Schema-first validation |
| Framework agnostic | Same API for React, Vue, Solid |
| Headless | Works with any UI library (shadcn/ui) |
onServerValidatemodules/[feature]/src/components/forms/modules/auth/src/components/forms/modules/auth/src/interfaces/modules/auth/src/actions/modules/cores/lib/forms/| File | Purpose | Max Lines |
|---|---|---|
| Shared formOptions + Zod schema | 50 |
| Client form UI with fields | 80 |
| Server Action with validation | 30 |
| Types for form values | 30 |
field.state.meta.errorsform.state.errorMap| Need | Reference |
|---|---|
| Initial setup | installation.md |
| Basic patterns | basic-usage.md, field-api.md |
| Validation | validation-zod.md, async-validation.md |
| Server Actions | server-actions.md |
| Dynamic forms | array-fields.md, multi-step-form.md |
| UI integration | shadcn-integration.md |
| TypeScript | typescript.md |
| Migration | migration-rhf.md |
asyncDebounceMsmergeForm| Aspect | TanStack Form | React Hook Form |
|---|---|---|
| Type Safety | 100% (DeepKeys) | Manual typing |
| Performance | Signals (minimal) | Refs (good) |
| Server Actions | Native support | Manual integration |
| Bundle Size | ~12KB | ~9KB |
| Learning Curve | Medium | Low |
| Use Case | Complex apps | Standard forms |