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 = instance.render();
    }
    
    workInProgress.effectTag |= PerformedWork;
    reconcileChildren(current, workInProgress, nextChildren);
    
    
    memoizeState(workInProgress, instance.state);
    memoizeProps(workInProgress, instance.props);
    
    if (hasContext) {
      invalidateContextProvider(workInProgress, true);
    }
    return workInProgress.child;
  }
  function pushHostRootContext(workInProgress) {
    const root = (workInProgress.stateNode: FiberRoot);
    if (root.pendingContext) {
      pushTopLevelContextObject(
        workInProgress,
        root.pendingContext,
        root.pendingContext !== root.context,
      );
    } else if (root.context) {
      
      pushTopLevelContextObject(workInProgress, root.context, false);
    }
    pushHostContainer(workInProgress, root.containerInfo);
  }
  function updateHostRoot(current, workInProgress, renderExpirationTime) {