react-hook-form 7.51.3 → 7.51.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2025,8 +2025,7 @@ function createFormControl(props = {}) {
2025
2025
  };
2026
2026
  const getValues = (fieldNames) => {
2027
2027
  const values = {
2028
- ..._defaultValues,
2029
- ...(_state.mount ? _formValues : {}),
2028
+ ...(_state.mount ? _formValues : _defaultValues),
2030
2029
  };
2031
2030
  return isUndefined(fieldNames)
2032
2031
  ? values