-
-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-Add Form-level Validation Logic #466
Comments
Yes please. Just missing this now. |
Adding a bit of context, maybe @aadito123 can tackle while I'm working on schema based validation: This code was removed here: 884235f And needs to be added back akin to this bit of code: form/packages/form-core/src/FieldApi.ts Lines 290 to 389 in 0159e61
|
After talking with @aadito123, who's working on this issue ( export type FormState<TData> = {
formErrors?: ValidationError[]
// Computed, just like `FieldAPI`
formErrorMap?: ValidationErrorMap
// Not in this PR, but in some follow-up
fieldErrors?: Record<DeepKeys<TData>, ValidationError[]>
fieldErrorMap?: Record<DeepKeys<TData>, ValidationErrorMap>
// ...
} So that our users can both:
Update@aadito123 correctly pointed out that we don't need |
Somewhere in our refactoring, the form-level validation logic was removed. We need to:
The text was updated successfully, but these errors were encountered: