form icon indicating copy to clipboard operation
form copied to clipboard

Add @tanstack/form-server Package

Open jiji-hoon96 opened this issue 3 months ago • 1 comments

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

jiji-hoon96 avatar Sep 15 '25 01:09 jiji-hoon96

🤖 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

nx-cloud[bot] avatar Sep 15 '25 05:09 nx-cloud[bot]