Got this debugging another error. Filing here for reference. Original code: https://phabricator.intern.facebook.com/P59317705
ReactDebugCurrentFiber.setCurrentFiber(nextEffect);
      }
      recordEffect();
      const effectTag = nextEffect.effectTag;
      if (effectTag & ContentReset) {
        commitResetTextContent(nextEffect);
      }
      if (effectTag & Ref) {
        const current = nextEffect.alternate;
        if (current !== null) {
          commitDetachRef(current);
        }
      }
      
      
      
      
      let primaryEffectTag = effectTag & (Placement | Update | Deletion);
      switch (primaryEffectTag) {
        case Placement: {
          commitPlacement(nextEffect);
          
          
          
          
          
          nextEffect.effectTag &= ~Placement;
          break;
        }