Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
currentTime,
          committedExpirationTime,
        );
      }
      if (effectTag & ErrLog) {
        commitErrorLogging(nextEffect, onUncaughtError);
      }
      if (effectTag & Ref) {
        recordEffect();
        commitAttachRef(nextEffect);
      }
      const next = nextEffect.nextEffect;
      // Ensure that we clean these up so that we don't accidentally keep them.
      // I'm not actually sure this matters because we can't reset firstEffect
      // and lastEffect since they're on every node, not just the effectful
      // ones. So we have to clean everything as we reuse nodes anyway.
      nextEffect.nextEffect = null;
      // Ensure that we reset the effectTag here so that we can rely on effect
      // tags to reason about the current life-cycle.
      nextEffect = next;
    }
  }
  function isAlreadyFailedLegacyErrorBoundary(instance: mixed): boolean {
    return (
      legacyErrorBoundariesThatAlreadyFailed !== null &&
      legacyErrorBoundariesThatAlreadyFailed.has(instance)
    );
  }
  function markLegacyErrorBoundaryAsFailed(instance: mixed) {
    if (legacyErrorBoundariesThatAlreadyFailed === null) {