Any warnings driven off of `warnAboutDeprecatedLifecycles` should use `shared/lowPriorityWarning` rather than `fbjs/lib/warning` to avoid thrashing automated tests.
inst.UNSAFE_componentWillMount();
      }
      if (queue.length) {
        oldQueue = queue;
        oldReplace = replace;
        queue = null;
        replace = false;
        if (oldReplace && oldQueue.length === 1) {
          inst.state = oldQueue[0];
        } else {
          nextState = oldReplace ? oldQueue[0] : inst.state;
          dontMutate = true;
          for (let i = oldReplace ? 1 : 0; i < oldQueue.length; i++) {
            partial = oldQueue[i];
            partialState =
              typeof partial === 'function'
                ? partial.call(inst, nextState, element.props, publicContext)
                : partial;
            if (partialState != null) {
              if (dontMutate) {
                dontMutate = false;
                nextState = Object.assign({}, nextState, partialState);
              } else {
                Object.assign(nextState, partialState);
              }
            }
          }
          inst.state = nextState;
        }
      } else {