react-hook-form 7.17.4 → 7.17.5

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
@@ -159,6 +159,7 @@ function useFormState(props) {
159
159
  shouldRenderFormState(formState, _localProxyFormState.current) &&
160
160
  updateFormState(Object.assign(Object.assign({}, control._formState), formState)),
161
161
  subject: control._subjects.state,
162
+ skipEarlySubscription: true,
162
163
  });
163
164
  return getProxyFormState(formState, control._proxyFormState, _localProxyFormState.current, false);
164
165
  }
@@ -1434,6 +1435,7 @@ function createFormControl(props = {}) {
1434
1435
  : (_formState.errors = {});
1435
1436
  _subjects.state.next({
1436
1437
  errors: _formState.errors,
1438
+ isValid: true,
1437
1439
  });
1438
1440
  };
1439
1441
  const setError = (name, error, options) => {