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
I have a large form that's broken down into section and i'll like to validate a section of the form manually especially when I have a field that is required but doesn't have a default value - without it being touched - I need a way to set errors on the field after manually validating.
Update a field's error state using the setFieldMeta function.
Following the demo provided, if you click on the button to manually run validation, it uses the setFieldMeta function to set the errors meta, but it doesn't get updated.
Expected behavior
I expect that the field error state should be updated when set using the setFieldMeta function.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Browser
TanStack Form adapter
react-form
TanStack Form version
1.2.4
TypeScript version
5
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I have a large form that's broken down into section and i'll like to validate a section of the form manually especially when I have a field that is required but doesn't have a default value - without it being touched - I need a way to set errors on the field after manually validating.
I put together a small demo here https://stackblitz.com/edit/vitejs-vite-fp5zqe1l?file=src%2FApp.tsx
Your minimal, reproducible example
https://stackblitz.com/edit/vitejs-vite-fp5zqe1l?file=src%2FApp.tsx
Steps to reproduce
Following the demo provided, if you click on the button to manually run validation, it uses the setFieldMeta function to set the errors meta, but it doesn't get updated.
Expected behavior
I expect that the field error state should be updated when set using the setFieldMeta function.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
TanStack Form adapter
react-form
TanStack Form version
1.2.4
TypeScript version
5
Additional context
No response
The text was updated successfully, but these errors were encountered: