Capítulo 7 de 39
clearErrors(name?) manually removes validation error state — one field, several by name, or the entire form — without touching validation rules or formState.isValid.
clearErrors("test") clears both test.firstName and test.lastName if both were registered under test.*.isValid: clearing an error doesn't re-run validation or recompute formState.isValid; that only happens on the next real validation trigger.clearErrors("firstName") // one field
clearErrors(["firstName", "lastName"]) // several fields
clearErrors() // everything
clearErrors to make isValid true: it only removes displayed error state; isValid is only ever set by an actual validation pass.clearErrors("namespace") clears every error under that namespace, not just an exact match.errors/isValid actually live.