We don't actually use this anywhere, so let's remove it.

https://github.com/facebook/react/blob/f1d00156df5453bc62bd5668fefdcac4ca67e90e/src/renderers/shared/fiber/ReactFiberScheduler.js#L1504-L1512
const errorToThrow = firstUncaughtError;
     We're done performing work. Time to clean up.
    isPerformingWork = false;
    deadlineHasExpired = false;
    didFatal = false;
    firstUncaughtError = null;
    capturedErrors = null;
    failedBoundaries = null;
    nextRenderedTree = null;
    nestedUpdateCount = 0;
    if (__DEV__) {
      stopWorkLoopTimer();
    }
     It's safe to throw any unhandled errors.
    if (errorToThrow !== null) {
      throw errorToThrow;
    }
  }
  
  function captureError(failedWork: Fiber, error: mixed): Fiber | null {
    
    ReactCurrentOwner.current = null;
    if (__DEV__) {
      ReactDebugCurrentFiber.resetCurrentFiber();
    }
     Search for the nearest error boundary.
    let boundary: Fiber | null = null;
     Passed to logCapturedError()
    let errorBoundaryFound: boolean = false;
    let willRetry: boolean = false;