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 using the validbot adapter within a form.Field, a v.pipe schema will result in concatenation of the error messages in field.state.meta.errors.
E.g. instead of ["error1", "error2", "error3"] this is returned ["error1, error2, error3"]
Describe the bug
When using the validbot adapter within a form.Field, a v.pipe schema will result in concatenation of the error messages in field.state.meta.errors.
E.g. instead of
["error1", "error2", "error3"]
this is returned["error1, error2, error3"]
Your minimal, reproducible example
https://codesandbox.io/p/devbox/ecstatic-northcutt-364clx?file=%2Fsrc%2Findex.tsx%3A48%2C15-52%2C17&workspaceId=ws_L7ruYMEE2bKZU53SwL4Ln4
Steps to reproduce
If the
firstName
field fails both checks the console.log prints an array with a single element instead of two.Expected behavior
I'd expect every error to be a separate entry in the error object (as suggested by the type
ValidationError[]
).How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
TanStack Form adapter
react-form
TanStack Form version
0.41.3
TypeScript version
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: