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.

updateTree(id, item => item.text = text);
  },
  onMountComponent(id) {
    updateTree(id, item => item.isMounted = true);
  },
  onMountRootComponent(id) {
    rootIDs.push(id);
  },
  onUpdateComponent(id) {
    updateTree(id, item => item.updateCount++);
  },
  onUnmountComponent(id) {
    updateTree(id, item => item.isMounted = false);
    rootIDs = rootIDs.filter(rootID => rootID !== id);
  },
  purgeUnmountedComponents() {
    Object.keys(tree)
      .filter(id => !tree[id].isMounted)
      .forEach(purgeDeep);
  },
  isMounted(id) {
    var item = tree[id];
    return item ? item.isMounted : false;
  },
  getChildIDs(id) {
    var item = tree[id];
    return item ? item.childIDs : [];
  },
  getDisplayName(id) {