@@ -92,12 +92,14 @@ import {
92
92
REACT_MEMO_TYPE ,
93
93
REACT_PROVIDER_TYPE ,
94
94
REACT_CONTEXT_TYPE ,
95
+ REACT_SCOPE_TYPE ,
95
96
} from 'shared/ReactSymbols' ;
96
97
import ReactSharedInternals from 'shared/ReactSharedInternals' ;
97
98
import {
98
99
disableLegacyContext ,
99
100
disableModulePatternComponents ,
100
101
warnAboutDefaultPropsOnFunctionComponents ,
102
+ enableScopeAPI ,
101
103
} from 'shared/ReactFeatureFlags' ;
102
104
103
105
import getComponentNameFromType from 'shared/getComponentNameFromType' ;
@@ -888,6 +890,14 @@ function renderElement(
888
890
renderNodeDestructive ( request , task , props . children ) ;
889
891
return ;
890
892
}
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
891
901
case REACT_SUSPENSE_TYPE : {
892
902
renderSuspenseBoundary ( request , task , props ) ;
893
903
return ;
@@ -991,6 +1001,7 @@ function renderNodeDestructive(
991
1001
'Portals are not currently supported by the server renderer. ' +
992
1002
'Render them conditionally so that they only appear on the client render.' ,
993
1003
) ;
1004
+ // eslint-disable-next-line-no-fallthrough
994
1005
case REACT_LAZY_TYPE :
995
1006
throw new Error ( 'Not yet implemented node type.' ) ;
996
1007
}
0 commit comments