Intended behavior: https://github.com/reactwg/react-18/discussions/31

Sandbox: https://codesandbox.io/s/react-18-layouteffect-semantics-forked-m02w5

Expected: when suspended content is hidden and then shown, we get layout cleanup followed by layout setup.
Actual: only layout cleanup happens.


break;
      }
      case HostComponent: {
        const instance: Instance = finishedWork.stateNode;
        
        
        
        
        if (current === null && finishedWork.flags & ) {
          const type = finishedWork.type;
          const props = finishedWork.memoizedProps;
          commitMount(instance, type, props, finishedWork);
        }
        break;
      }
      case HostText: {
        
        break;
      }
      case HostPortal: {
        
        break;
      }
      case Profiler: {
        if (enableProfilerTimer) {
          const {onCommit, onRender} = finishedWork.memoizedProps;
          const {effectDuration} = finishedWork.stateNode;
          const commitTime = getCommitTime();
          let phase = current === null ? 'mount' : 'update';
          if (enableProfilerNestedPhase) {