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`.
mountClassInstance(workInProgress, renderExpirationTime);
        
        
        
        
        if (debugRenderPhaseSideEffects) {
          constructClassInstance(workInProgress, workInProgress.pendingProps);
          mountClassInstance(workInProgress, renderExpirationTime);
        }
        shouldUpdate = true;
      } else {
        invariant(false, 'Resuming work not yet implemented.');
        
        
      }
    } else {
      shouldUpdate = updateClassInstance(
        current,
        workInProgress,
        renderExpirationTime,
      );
    }
    return finishClassComponent(
      current,
      workInProgress,
      shouldUpdate,
      hasContext,
    );
  }
  function finishClassComponent(