Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
case PlacementAndUpdate: {
          
          commitPlacement(nextEffect);
          
          
          nextEffect.effectTag &= ~Placement;
          
          const current = nextEffect.alternate;
          commitWork(current, nextEffect);
          break;
        }
        case Update: {
          const current = nextEffect.alternate;
          commitWork(current, nextEffect);
          break;
        }
        case Deletion: {
          commitDeletion(nextEffect);
          break;
        }
      }
      nextEffect = nextEffect.nextEffect;
    }
    if (__DEV__) {
      ReactDebugCurrentFiber.resetCurrentFiber();
    }
  }
  function commitBeforeMutationLifecycles() {
    while (nextEffect !== null) {
      const effectTag = nextEffect.effectTag;