You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I went to try out Tanstack Form in my existing project (Vite, React 19, Zod, React Compiler), I noticed that none of my Zod errors were even displaying! I was able to reproduce the issue along with a fix, which is basically instead of passing the entire field to the error display component, pass field.state instead.
Remove characters from either s until there is less than 4 characters
Notice how only one shows the error
Expected behavior
I'd expect that following your examples wouldn't break if using React Compiler.
How often does this bug happen?
None
Screenshots or Videos
Platform
OS: Ubuntu 22.04
Browser: Chrome
TanStack Form adapter
react-form
TanStack Form version
1.3.0
TypeScript version
~5.7.2
Additional context
No response
The text was updated successfully, but these errors were encountered:
iPwnPancakes
changed the title
[Docs] Error display is NOT react compiler friendly
[Docs] Error display example is NOT react compiler friendly
Apr 5, 2025
Describe the bug
When I went to try out Tanstack Form in my existing project (Vite, React 19, Zod, React Compiler), I noticed that none of my Zod errors were even displaying! I was able to reproduce the issue along with a fix, which is basically instead of passing the entire
field
to the error display component, passfield.state
instead.Your minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-gc5qns8x?file=src%2Fcomponents%2FFixedFieldInfo.tsx,vite.config.ts,src%2Fcomponents%2FStaleInputField.tsx,src%2Fcomponents%2FFixedInputField.tsx,src%2Fhooks%2Fform.ts,src%2FApp.tsx,src%2Fcomponents%2FStaleFieldInfo.tsx&terminal=dev
Steps to reproduce
Expected behavior
I'd expect that following your examples wouldn't break if using React Compiler.
How often does this bug happen?
None
Screenshots or Videos
Platform
TanStack Form adapter
react-form
TanStack Form version
1.3.0
TypeScript version
~5.7.2
Additional context
No response
The text was updated successfully, but these errors were encountered: