Form.onShouldTriggerValidation - Andrei15193/react-model-view-viewmodel GitHub Wiki

API / Form<TValidationError> / onShouldTriggerValidation method

Invoked when the current instance's properties change, this is a plugin method to help reduce validations when changes do not have an effect on validation.

protected onShouldTriggerValidation(
  changedProperties: readonly (keyof Form<TValidationError>)[]
): boolean

Source reference: src/forms/Form.ts:876.

Parameters

Returns: boolean

Returns true if a validation should be triggered for the given changed properties; otherwise false.

⚠️ **GitHub.com Fallback** ⚠️