TanStackT
TanStack7mo ago
4 replies
brilliant-lime

onChangeAsync errors not in the form state errors

I noticed something:

When we have a field with onChangeAsync validation, the error throwed by the validation doesnt update form state errors (form state errors is still empty, even though canSubmit and isValid are falses).

Is this a bug or intentional?
Repro: https://stackblitz.com/edit/vitejs-vite-w4gzoqsg?file=src%2FApp.tsx
StackBlitzMatheus
Next generation frontend tooling. It's fast!
Asynchronous defaultValues with validation (duplicated) - StackBlitz
Was this page helpful?