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
Observe the initial error ("must not be before 2025-06-02") in the Run Date field of the form
Select the "Dead" radio button
Select the "Once" radio button
Observe the date is the same as before but the error has gone, despite the call to form.validateAllFields (line 130)
Expected behavior
form.validateAllFields (line 130) revalidates all fields, resulting in the error being displayed
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows
Chrome (latest)
TanStack Form adapter
react-form
TanStack Form version
1.90.0
TypeScript version
5.7.2
Additional context
The aim is to use form.reset({ ... }) to set multiple co-variant fields together, revealing any constraint violations to the user as soon as the values have been set.
Is there an alternative way to revalidate after reset, preferably one that doesn't rerender the entire component?
The text was updated successfully, but these errors were encountered:
@jashworth I think you've left your codeSandbox as private, as clicking the link provided doesn’t open one 😅
I haven't looked but do you think this could be related to #1485, if you could do a little investigation it would help us out a bunch 😄 if not we will take a look when we get some time!
Describe the bug
form.validateAllFields (line 130) does not appear to revalidate the fields after form.reset({ ... })
...at least not synchronously (see lines 133-135)
Your minimal, reproducible example
https://codesandbox.io/p/devbox/fervent-ives-32x45k
Steps to reproduce
Expected behavior
form.validateAllFields (line 130) revalidates all fields, resulting in the error being displayed
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows
Chrome (latest)
TanStack Form adapter
react-form
TanStack Form version
1.90.0
TypeScript version
5.7.2
Additional context
The aim is to use form.reset({ ... }) to set multiple co-variant fields together, revealing any constraint violations to the user as soon as the values have been set.
Is there an alternative way to revalidate after reset, preferably one that doesn't rerender the entire component?
The text was updated successfully, but these errors were encountered: