function accumulateDirectDispatchesSingle(event) {
  if (event && event.dispatchConfig.registrationName) {
    accumulateDispatches(event.dispatchMarker, null, event);
  }
}
Simple, lightweight module assisting with the detection and context of
Worker. Helps avoid circular dependencies and allows code to reason about
whether or not they are in a Worker, even if they never include the main
`ReactWorker` dependency.