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.


isContainer = true;
      break;
    case HostPortal:
      parent = parentStateNode.containerInfo;
      isContainer = true;
      break;
     
    default:
      invariant(
        false,
        'Invalid host parent fiber. This error is likely caused by a bug ' +
          'in React. Please file an issue.',
      );
  }
  if (parentFiber.flags & ContentReset) {
     
    resetTextContent(parent);
     
    parentFiber.flags &= ~ContentReset;
  }
  const before = getHostSibling(finishedWork);
  
  
  if (isContainer) {
    insertOrAppendNodeIntoContainer(finishedWork, before, parent);
  } else {
    insertOrAppendNode(finishedWork, before, parent);
  }
}
function insertOrAppendNodeIntoContainer(