Docs (4.0.0)
class UIFormContext property

errors

An object that contains validation errors for fields that have been validated.

readonly

get errors(): Readonly<{
    [name in keyof TData]?: Error;
}>

Notes

  • Errors are only recorded when fields are set or validated explicitly. To force all fields to be validated and this object to contain errors for all fields, use the UIFormContext.validateAll() method.

Related