shouldConditionallyClear() {
    // Skip if this component has clearOnHide set to false.
    if (this.component.clearOnHide === false) {
      this._conditionallyClear = false;
      return this._conditionallyClear;
    }

    // If the component is logically hidden, then it is conditionally hidden and should clear.
    if (this.logicallyHidden) {
      this._conditionallyClear = true;
      return this._conditionallyClear;
    }

    // If we have a condition and it is not conditionally visible, the it should conditionally clear.
    if (
      this.hasCondition() &&
      !this.conditionallyVisible() &&
      (!this.rootPristine || this.shouldConditionallyClearOnPristine())
    ) {
      this._conditionallyClear = true;
      return this._conditionallyClear;
    }
    this._conditionallyClear = this.hasSetValue ? false : this.parentShouldConditionallyClear();
    return this._conditionallyClear;
  }
Returns if the component should clear its value when conditionally hidden.
@returns {boolean} - If the component should clear its value when conditionally hidden.