Capítulo 11 de 39
getErrors(name?) (7.86.0+) reads currently-stored errors without running validation, subscribing, or causing a re-render — the non-reactive counterpart to formState.errors.
root, root.*, form, form.*); undefined if none.undefined.setError/clearErrors to change stored errors.const allErrors = getErrors()
const userErrors = getErrors("user")
const [emailError, firstNameError] = getErrors(["email", "user.firstName"])
getErrors where you need the UI to react to error changes: it never triggers a re-render — use formState.errors or useFormState for that.getErrors is to formState.errors what getValues is to watch — an on-demand, non-reactive read."user", "root", "form") can return a nested subtree, not just a leaf error.