MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / _setErrors

Function _setErrors

src/logic/createFormControl.ts:319–325  ·  view source on GitHub ↗
(errors: FieldErrors<TFieldValues>)

Source from the content-addressed store, hash-verified

317 };
318
319 const _setErrors = (errors: FieldErrors<TFieldValues>) => {
320 _formState.errors = errors;
321 _subjects.state.next({
322 errors: _formState.errors,
323 isValid: false,
324 });
325 };
326
327 const updateValidAndValue = (
328 name: InternalFieldName,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected