function executeDispatchesAndRelease(event: ReactSyntheticEvent) {
  if (event) {
    executeDispatchesInOrder(event);

    if (!event.isPersistent()) {
      event.constructor.release(event);
    }
  }
}
Dispatches an event and releases it back into the pool, unless persistent.

@param {?object} event Synthetic event to be dispatched.
@private