We purge it [here](https://github.com/facebook/react/blob/b11540ccb2321aeb7259fcf0b3a38aeeea35231d/src/isomorphic/ReactDebugTool.js#L88-L89) but this code doesn’t run because of the [early exit](https://github.com/facebook/react/blob/b11540ccb2321aeb7259fcf0b3a38aeeea35231d/src/isomorphic/ReactDebugTool.js#L53-L57).

Need to fix this and add a test case to make sure we don’t regress on it.

it('gets recorded during an update', () => {
        var node = document.createElement('div');
        ReactDOM.render(<div>{'Hi.'}{42}</div>, node);
        var inst1 = ReactDOMComponentTree.getInstanceFromNode(node.firstChild.childNodes[0]);
        var inst2 = ReactDOMComponentTree.getInstanceFromNode(node.firstChild.childNodes[3]);
        ReactNativeOperationHistoryDevtool.clearHistory();
        ReactDOM.render(<div>{'Bye.'}{43}</div>, node);
        assertHistoryMatches([{
          instanceID: inst1._debugID,
          type: 'replace text',
          payload: 'Bye.',
        }, {
          instanceID: inst2._debugID,
          type: 'replace text',
          payload: '43',
        }]);
      });
      it('gets ignored if new text is equal', () => {
        var node = document.createElement('div');
        ReactDOM.render(<div>{'Hi.'}{42}</div>, node);
        ReactNativeOperationHistoryDevtool.clearHistory();
        ReactDOM.render(<div>{'Hi.'}{42}</div>, node);
        assertHistoryMatches([]);
      });
    });
  });
  describe('replace with', () => {
    it('gets recorded when composite renders to a different type', () => {
      var element;
      function Foo() {