Optional
controller: FormControllerobtained by using useFormController
hook, used to connect to form state.
Injected automatically via React Context when used inside FormProvider
component.
array of all field errors represented as FieldError
objects. Each object contains field ID and it's error.
const Schema = new FormSchemaBuilder()...;
const MyForm: React.FC = () => {
const controller = useFormController({ Schema })
const errors = useFormErrors(Schema, controller)
...
}
Generated using TypeDoc
Hook used to gain access to errors of all invalid form fields. Causes the component to subscribe to changes of all field errors.