form
form copied to clipboard
Add @tanstack/form-server Package
This PR introduces a new @tanstack/form-server package that provides utilities for handling server errors and success responses in TanStack Form applications.
Key Features
- Error Normalization: mapServerErrors() standardizes various server error formats (Zod, Rails, NestJS, custom) into a consistent structure
- Error Injection: applyServerErrors() applies mapped errors to form instances with proper field and form-level error handling
- Success Handling: onServerSuccess() manages successful responses with configurable reset strategies, flash messages, and callbacks
- Store Selectors: Utility functions for extracting server data from application stores
Supported Error Formats
- Zod validation errors (issues array)
- Rails-style errors (errors object)
- NestJS validation errors (structured message array)
- Custom field/form error formats
🤖 Nx Cloud AI Fix Eligible
An automatically generated fix could have helped fix failing tasks for this run, but Self-healing CI is disabled for this workspace. Visit workspace settings to enable it and get automatic fixes in future runs.
To disable these notifications, a workspace admin can disable them in workspace settings.
View your CI Pipeline Execution ↗ for commit c1f78ae62beab5fa5ce1a6b02dcf2314005d2652
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many --target=build --exclude=examples/** |
❌ Failed | 3s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-09-15 05:20:46 UTC