@@ -122,17 +122,10 @@ __DEV__ &&
122122 ) {
123123 case REACT_PORTAL_TYPE :
124124 return "Portal" ;
125- case REACT_PROVIDER_TYPE :
126- if ( enableRenderableContext ) break ;
127- else return ( type . _context . displayName || "Context" ) + ".Provider" ;
128125 case REACT_CONTEXT_TYPE :
129- return enableRenderableContext
130- ? ( type . displayName || "Context" ) + ".Provider"
131- : ( type . displayName || "Context" ) + ".Consumer" ;
126+ return ( type . displayName || "Context" ) + ".Provider" ;
132127 case REACT_CONSUMER_TYPE :
133- if ( enableRenderableContext )
134- return ( type . _context . displayName || "Context" ) + ".Consumer" ;
135- break ;
128+ return ( type . _context . displayName || "Context" ) + ".Consumer" ;
136129 case REACT_FORWARD_REF_TYPE :
137130 var innerType = type . render ;
138131 type = type . displayName ;
@@ -753,7 +746,6 @@ __DEV__ &&
753746 var dynamicFeatureFlags = require ( "ReactFeatureFlags" ) ,
754747 disableDefaultPropsExceptForClasses =
755748 dynamicFeatureFlags . disableDefaultPropsExceptForClasses ,
756- enableRenderableContext = dynamicFeatureFlags . enableRenderableContext ,
757749 enableTransitionTracing = dynamicFeatureFlags . enableTransitionTracing ,
758750 renameElementSymbol = dynamicFeatureFlags . renameElementSymbol ,
759751 enableViewTransition = dynamicFeatureFlags . enableViewTransition ;
@@ -765,7 +757,6 @@ __DEV__ &&
765757 REACT_FRAGMENT_TYPE = Symbol . for ( "react.fragment" ) ,
766758 REACT_STRICT_MODE_TYPE = Symbol . for ( "react.strict_mode" ) ,
767759 REACT_PROFILER_TYPE = Symbol . for ( "react.profiler" ) ,
768- REACT_PROVIDER_TYPE = Symbol . for ( "react.provider" ) ,
769760 REACT_CONSUMER_TYPE = Symbol . for ( "react.consumer" ) ,
770761 REACT_CONTEXT_TYPE = Symbol . for ( "react.context" ) ,
771762 REACT_FORWARD_REF_TYPE = Symbol . for ( "react.forward_ref" ) ,
@@ -1151,74 +1142,22 @@ __DEV__ &&
11511142 return props ;
11521143 } ;
11531144 exports . createContext = function ( defaultValue ) {
1154- var context = {
1145+ defaultValue = {
11551146 $$typeof : REACT_CONTEXT_TYPE ,
11561147 _currentValue : defaultValue ,
11571148 _currentValue2 : defaultValue ,
11581149 _threadCount : 0 ,
11591150 Provider : null ,
11601151 Consumer : null
11611152 } ;
1162- enableRenderableContext
1163- ? ( ( context . Provider = context ) ,
1164- ( context . Consumer = {
1165- $$typeof : REACT_CONSUMER_TYPE ,
1166- _context : context
1167- } ) )
1168- : ( ( context . Provider = {
1169- $$typeof : REACT_PROVIDER_TYPE ,
1170- _context : context
1171- } ) ,
1172- ( defaultValue = { $$typeof : REACT_CONTEXT_TYPE , _context : context } ) ,
1173- Object . defineProperties ( defaultValue , {
1174- Provider : {
1175- get : function ( ) {
1176- return context . Provider ;
1177- } ,
1178- set : function ( _Provider ) {
1179- context . Provider = _Provider ;
1180- }
1181- } ,
1182- _currentValue : {
1183- get : function ( ) {
1184- return context . _currentValue ;
1185- } ,
1186- set : function ( _currentValue ) {
1187- context . _currentValue = _currentValue ;
1188- }
1189- } ,
1190- _currentValue2 : {
1191- get : function ( ) {
1192- return context . _currentValue2 ;
1193- } ,
1194- set : function ( _currentValue2 ) {
1195- context . _currentValue2 = _currentValue2 ;
1196- }
1197- } ,
1198- _threadCount : {
1199- get : function ( ) {
1200- return context . _threadCount ;
1201- } ,
1202- set : function ( _threadCount ) {
1203- context . _threadCount = _threadCount ;
1204- }
1205- } ,
1206- Consumer : {
1207- get : function ( ) {
1208- return context . Consumer ;
1209- }
1210- } ,
1211- displayName : {
1212- get : function ( ) {
1213- return context . displayName ;
1214- } ,
1215- set : function ( ) { }
1216- }
1217- } ) ,
1218- ( context . Consumer = defaultValue ) ) ;
1219- context . _currentRenderer = null ;
1220- context . _currentRenderer2 = null ;
1221- return context ;
1153+ defaultValue . Provider = defaultValue ;
1154+ defaultValue . Consumer = {
1155+ $$typeof : REACT_CONSUMER_TYPE ,
1156+ _context : defaultValue
1157+ } ;
1158+ defaultValue . _currentRenderer = null ;
1159+ defaultValue . _currentRenderer2 = null ;
1160+ return defaultValue ;
12221161 } ;
12231162 exports . createElement = function ( type , config , children ) {
12241163 for ( var i = 2 ; i < arguments . length ; i ++ )
@@ -1537,7 +1476,7 @@ __DEV__ &&
15371476 exports . useTransition = function ( ) {
15381477 return resolveDispatcher ( ) . useTransition ( ) ;
15391478 } ;
1540- exports . version = "19.2.0-www-classic-c38e2689-20250609 " ;
1479+ exports . version = "19.2.0-www-classic-6c86e56a-20250611 " ;
15411480 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15421481 "function" ===
15431482 typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStop &&
0 commit comments