react-hook-form 7.19.2 → 7.19.3

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.
package/dist/index.esm.js CHANGED
@@ -214,7 +214,7 @@ function useWatch(props) {
214
214
  subject: control._subjects.watch,
215
215
  callback: (formState) => {
216
216
  if (shouldSubscribeByName(_name.current, formState.name)) {
217
- const fieldValues = generateWatchOutput(_name.current, control._names, control._formValues);
217
+ const fieldValues = generateWatchOutput(_name.current, control._names, formState.values || control._formValues);
218
218
  updateValue(isObject(fieldValues) &&
219
219
  !(isString(_name.current) &&
220
220
  get(control._fields, _name.current, {})._f)