Same as https://github.com/facebook/react/issues/10103, but for the server renderer. You can look at implementation in https://github.com/facebook/react/pull/11168 and do something very similar in `ReactPartialRenderer.js`.
nextChildren,
        renderExpirationTime,
      );
    }
    memoizeProps(workInProgress, nextProps);
    
    
    return workInProgress.stateNode;
  }
  function updatePortalComponent(
    current,
    workInProgress,
    renderExpirationTime,
  ) {
    pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
    const nextChildren = workInProgress.pendingProps;
    if (hasContextChanged()) {
      
      
    } else if (workInProgress.memoizedProps === nextChildren) {
      return bailoutOnAlreadyFinishedWork(current, workInProgress);
    }
    if (current === null) {
      
      
      
      
      
      workInProgress.child = reconcileChildFibers(
        workInProgress,