MCPcopy Index your code
hub / github.com/react-hook-form/react-hook-form / _runSchema

Function _runSchema

src/logic/createFormControl.ts:538–550  ·  view source on GitHub ↗
(name?: InternalFieldName[])

Source from the content-addressed store, hash-verified

536 };
537
538 const _runSchema = async (name?: InternalFieldName[]) => {
539 _updateIsValidating(name, true);
540 return await _options.resolver!(
541 _formValues as TFieldValues,
542 _options.context,
543 getResolverOptions(
544 name || _names.mount,
545 _fields,
546 _options.criteriaMode,
547 _options.shouldUseNativeValidation,
548 ),
549 );
550 };
551
552 const executeSchemaAndUpdateState = async (names?: InternalFieldName[]) => {
553 const { errors } = await _runSchema(names);

Callers 4

_setValidFunction · 0.85
onChangeFunction · 0.85
handleSubmitFunction · 0.85

Calls 1

_updateIsValidatingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…