27
27
}
28
28
"use strict" ;
29
29
30
- var ReactVersion = "18.3.0-www-classic-01108d4a " ;
30
+ var ReactVersion = "18.3.0-www-classic-d874e0af " ;
31
31
32
32
// ATTENTION
33
33
// When adding new symbols to this file,
@@ -40,7 +40,6 @@ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
40
40
var REACT_PROFILER_TYPE = Symbol . for ( "react.profiler" ) ;
41
41
var REACT_PROVIDER_TYPE = Symbol . for ( "react.provider" ) ;
42
42
var REACT_CONTEXT_TYPE = Symbol . for ( "react.context" ) ;
43
- var REACT_SERVER_CONTEXT_TYPE = Symbol . for ( "react.server_context" ) ;
44
43
var REACT_FORWARD_REF_TYPE = Symbol . for ( "react.forward_ref" ) ;
45
44
var REACT_SUSPENSE_TYPE = Symbol . for ( "react.suspense" ) ;
46
45
var REACT_SUSPENSE_LIST_TYPE = Symbol . for ( "react.suspense_list" ) ;
@@ -52,9 +51,6 @@ var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
52
51
var REACT_LEGACY_HIDDEN_TYPE = Symbol . for ( "react.legacy_hidden" ) ;
53
52
var REACT_CACHE_TYPE = Symbol . for ( "react.cache" ) ;
54
53
var REACT_TRACING_MARKER_TYPE = Symbol . for ( "react.tracing_marker" ) ;
55
- var REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED = Symbol . for (
56
- "react.default_value"
57
- ) ;
58
54
var MAYBE_ITERATOR_SYMBOL = Symbol . iterator ;
59
55
var FAUX_ITERATOR_SYMBOL = "@@iterator" ;
60
56
function getIteratorFn ( maybeIterable ) {
@@ -584,11 +580,6 @@ function getComponentNameFromType(type) {
584
580
return null ;
585
581
}
586
582
}
587
-
588
- case REACT_SERVER_CONTEXT_TYPE : {
589
- var context2 = type ;
590
- return ( context2 . displayName || context2 . _globalName ) + ".Provider" ;
591
- }
592
583
}
593
584
}
594
585
@@ -2177,8 +2168,6 @@ function setExtraStackFrame(stack) {
2177
2168
} ;
2178
2169
}
2179
2170
2180
- var ContextRegistry = { } ;
2181
-
2182
2171
var ReactSharedInternals = {
2183
2172
ReactCurrentDispatcher : ReactCurrentDispatcher$1 ,
2184
2173
ReactCurrentCache : ReactCurrentCache ,
@@ -2191,10 +2180,6 @@ var ReactSharedInternals = {
2191
2180
ReactSharedInternals . ReactCurrentActQueue = ReactCurrentActQueue ;
2192
2181
}
2193
2182
2194
- {
2195
- ReactSharedInternals . ContextRegistry = ContextRegistry ;
2196
- }
2197
-
2198
2183
var ReactCurrentDispatcher = ReactSharedInternals . ReactCurrentDispatcher ;
2199
2184
var prefix ;
2200
2185
function describeBuiltInComponentFrame ( name , source , ownerFn ) {
@@ -2947,87 +2932,6 @@ function cloneElementWithValidation(element, props, children) {
2947
2932
return newElement ;
2948
2933
}
2949
2934
2950
- function createServerContext ( globalName , defaultValue ) {
2951
- {
2952
- error (
2953
- "Server Context is deprecated and will soon be removed. " +
2954
- "It was never documented and we have found it not to be useful " +
2955
- "enough to warrant the downside it imposes on all apps."
2956
- ) ;
2957
- }
2958
-
2959
- var wasDefined = true ;
2960
-
2961
- if ( ! ContextRegistry [ globalName ] ) {
2962
- wasDefined = false ;
2963
- var _context = {
2964
- $$typeof : REACT_SERVER_CONTEXT_TYPE ,
2965
- // As a workaround to support multiple concurrent renderers, we categorize
2966
- // some renderers as primary and others as secondary. We only expect
2967
- // there to be two concurrent renderers at most: React Native (primary) and
2968
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
2969
- // Secondary renderers store their context values on separate fields.
2970
- _currentValue : defaultValue ,
2971
- _currentValue2 : defaultValue ,
2972
- _defaultValue : defaultValue ,
2973
- // Used to track how many concurrent renderers this context currently
2974
- // supports within in a single renderer. Such as parallel server rendering.
2975
- _threadCount : 0 ,
2976
- // These are circular
2977
- Provider : null ,
2978
- Consumer : null ,
2979
- _globalName : globalName
2980
- } ;
2981
- _context . Provider = {
2982
- $$typeof : REACT_PROVIDER_TYPE ,
2983
- _context : _context
2984
- } ;
2985
-
2986
- {
2987
- var hasWarnedAboutUsingConsumer ;
2988
- _context . _currentRenderer = null ;
2989
- _context . _currentRenderer2 = null ;
2990
- Object . defineProperties ( _context , {
2991
- Consumer : {
2992
- get : function ( ) {
2993
- if ( ! hasWarnedAboutUsingConsumer ) {
2994
- error ( "Consumer pattern is not supported by ReactServerContext" ) ;
2995
-
2996
- hasWarnedAboutUsingConsumer = true ;
2997
- }
2998
-
2999
- return null ;
3000
- }
3001
- }
3002
- } ) ;
3003
- }
3004
-
3005
- ContextRegistry [ globalName ] = _context ;
3006
- }
3007
-
3008
- var context = ContextRegistry [ globalName ] ;
3009
-
3010
- if ( context . _defaultValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED ) {
3011
- context . _defaultValue = defaultValue ;
3012
-
3013
- if (
3014
- context . _currentValue === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
3015
- ) {
3016
- context . _currentValue = defaultValue ;
3017
- }
3018
-
3019
- if (
3020
- context . _currentValue2 === REACT_SERVER_CONTEXT_DEFAULT_VALUE_NOT_LOADED
3021
- ) {
3022
- context . _currentValue2 = defaultValue ;
3023
- }
3024
- } else if ( wasDefined ) {
3025
- throw new Error ( "ServerContext: " + globalName + " already defined" ) ;
3026
- }
3027
-
3028
- return context ;
3029
- }
3030
-
3031
2935
function startTransition ( scope , options ) {
3032
2936
var prevTransition = ReactCurrentBatchConfig . transition ;
3033
2937
ReactCurrentBatchConfig . transition = { } ;
@@ -4165,7 +4069,6 @@ exports.createContext = createContext;
4165
4069
exports . createElement = createElement ;
4166
4070
exports . createFactory = createFactory ;
4167
4071
exports . createRef = createRef ;
4168
- exports . createServerContext = createServerContext ;
4169
4072
exports . experimental_useEffectEvent = useEffectEvent ;
4170
4073
exports . forwardRef = forwardRef ;
4171
4074
exports . isValidElement = isValidElement$1 ;
0 commit comments