MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / runWizardStepValidationForState

Function runWizardStepValidationForState

packages/core/src/forms/useForm.ts:95–107  ·  view source on GitHub ↗
(
    values: T,
    stepIndex: number,
    source: Pick<FormState<T>, "disabled" | "fieldDisabled" | "errors"> = stateRef.current,
  )

Source from the content-addressed store, hash-verified

93 });
94
95 const runWizardStepValidationForState = (
96 values: T,
97 stepIndex: number,
98 source: Pick<FormState<T>, "disabled" | "fieldDisabled" | "errors"> = stateRef.current,
99 ): ValidationResult<T> =>
100 runWizardStepValidation({
101 values,
102 stepIndex,
103 wizardSteps,
104 source,
105 runSyncValidationFiltered,
106 filterDisabledValidationErrors,
107 });
108
109 ctx.useEffect(() => {
110 if (options.validateAsync) {

Callers

nothing calls this directly

Calls 1

runWizardStepValidationFunction · 0.85

Tested by

no test coverage detected