function enqueueUpdate(internalInstance) {
  if (internalInstance !== ReactLifeCycle.currentlyMountingInstance) {
    // If we're in a componentWillMount handler, don't enqueue a rerender
    // because ReactUpdates assumes we're in a browser context (which is
    // wrong for server rendering) and we're about to do a render anyway.
    // See bug in #1740.
    ReactUpdates.enqueueUpdate(internalInstance);
  }
}
Enqueue a callback that will be executed after all the pending updates
have processed.

@param {ReactClass} publicInstance The instance to use as `this` context.
@param {?function} callback Called after state is updated.
@internal