Replies: 1 comment
-
Closed in favour of #1156 which is a feature request and more clearly describes the functionality desired. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm assessing TanStack Form as a migration target from Formik in a fairly large production React application.
The way a lot of our forms work at the moment is we validate initially
onBlur
, this means the user doesn't immediately see errors pop up while they're still using the input. We then revalidateonChange
, we choose to do this because it means the user gets instantaneous feedback when they've cleared an error.All of our forms are validated with Zod schemas.
I've looked through the documentation and examples but couldn't find anything obvious about whether this is currently possible.
What I'm describing seems quite similar to what was raised in #487, specifically the
revalidateOnKeystroke
option proposed by @juliendelort.Thanks in advance for any guidance!
UPDATE
So after playing around a little further, I've figured I can do the following to achieve what I want at the Field level. However, I'd much prefer to validate at the Form level in most instances.
Beta Was this translation helpful? Give feedback.
All reactions