Skip to content

ReadOnlyFormCollection.onShouldTriggerValidation

github-actions[bot] edited this page Dec 3, 2024 · 3 revisions
API / ReadOnlyFormCollection<TForm, 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 ReadOnlyFormCollection<TForm, TValidationError>)[]
): boolean

Source reference: src/forms/ReadOnlyFormCollection.ts:172.

Parameters

Returns: boolean

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

Clone this wiki locally