@@ -92,12 +92,14 @@ import {
9292 REACT_MEMO_TYPE ,
9393 REACT_PROVIDER_TYPE ,
9494 REACT_CONTEXT_TYPE ,
95+ REACT_SCOPE_TYPE ,
9596} from 'shared/ReactSymbols' ;
9697import ReactSharedInternals from 'shared/ReactSharedInternals' ;
9798import {
9899 disableLegacyContext ,
99100 disableModulePatternComponents ,
100101 warnAboutDefaultPropsOnFunctionComponents ,
102+ enableScopeAPI ,
101103} from 'shared/ReactFeatureFlags' ;
102104
103105import getComponentNameFromType from 'shared/getComponentNameFromType' ;
@@ -888,6 +890,14 @@ function renderElement(
888890 renderNodeDestructive ( request , task , props . children ) ;
889891 return ;
890892 }
893+ case REACT_SCOPE_TYPE : {
894+ if ( enableScopeAPI ) {
895+ renderNodeDestructive ( request , task , props . children ) ;
896+ return ;
897+ }
898+ invariant ( false , 'ReactDOMServer does not yet support scope components.' ) ;
899+ }
900+ // eslint-disable-next-line-no-fallthrough
891901 case REACT_SUSPENSE_TYPE : {
892902 renderSuspenseBoundary ( request , task , props ) ;
893903 return ;
@@ -991,6 +1001,7 @@ function renderNodeDestructive(
9911001 'Portals are not currently supported by the server renderer. ' +
9921002 'Render them conditionally so that they only appear on the client render.' ,
9931003 ) ;
1004+ // eslint-disable-next-line-no-fallthrough
9941005 case REACT_LAZY_TYPE :
9951006 throw new Error ( 'Not yet implemented node type.' ) ;
9961007 }
0 commit comments