Capítulo 18 de 39
resetField(name, options?) resets one registered field's value and state (error, dirty, touched) independently, without touching the rest of the form.
defaultValue; re-evaluates isValid (unless keepError: true) and isDirty (unless keepDirty: true).defaultValue is updated to match (so future resets/dirty-comparisons use the new baseline); when omitted, the field just reverts to its existing defaultValue. Must not be undefined.resetField("firstName") // revert to defaultValue, clear error/dirty
resetField("firstName", { keepError: true }) // revert value, keep the error showing
resetField("firstName", { keepDirty: true }) // revert value, keep dirtyFields state
resetField("firstName", { defaultValue: "New" }) // set a new value AND a new baseline defaultValue
resetField on a name that was never registered: the call fails to find the field — always resetField after register, on the exact same name.defaultValue: undefined: not supported — omit the option entirely to fall back to the existing default instead.resetField is the single-field version of reset — reach for it instead of a full-form reset when only one field needs to go back to baseline.defaultValue doesn't just set the value once — it moves the field's baseline for future dirty comparisons too.isDirty/errors/touchedFields changes are observed.