Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
}
      }
      const partialState = type.getDerivedStateFromProps.call(
        null,
        props,
        this._instance.state,
      );
      if (__DEV__) {
        if (partialState === undefined) {
          const componentName = getName(type, this._instance);
          if (!didWarnAboutUndefinedDerivedState[componentName]) {
            warning(
              false,
              '%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. ' +
                'You have returned undefined.',
              componentName,
            );
            didWarnAboutUndefinedDerivedState[componentName] = componentName;
          }
        }
      }
      if (partialState != null) {
        const oldState = this._newState || this._instance.state;
        const newState = Object.assign({}, oldState, partialState);
        this._instance.state = this._newState = newState;
      }
    }
  }
}
class Updater {