disableRequiredPropValidation method

void disableRequiredPropValidation()

Disables all prop validation for this builder, both at runtime (skipping validateRequiredProps) and within the OverReact analyzer plugin's required props lint.

Allows validation to be skipped to support cases where required props are cloned onto an element.

Prop validation for specific props can also be disabled via annotations.disableRequiredPropValidation or annotations.Props.disableRequiredPropValidation.

Implementation

void disableRequiredPropValidation() {
  _shouldValidateRequiredProps = false;
}