@@ -2345,16 +2345,8 @@ if (__DEV__) {
2345
2345
: 'something with type "' + typeof thing + '"' ;
2346
2346
}
2347
2347
2348
- var ReactSharedInternalsServer = // $FlowFixMe: It's defined in the one we resolve to.
2349
- React . __SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ;
2350
-
2351
- if ( ! ReactSharedInternalsServer ) {
2352
- throw new Error (
2353
- 'The "react" package in this environment is not configured correctly. ' +
2354
- 'The "react-server" condition must be enabled in any environment that ' +
2355
- "runs React Server Components."
2356
- ) ;
2357
- }
2348
+ var ReactSharedInternals =
2349
+ React . __CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ;
2358
2350
2359
2351
var ReactDOMSharedInternals =
2360
2352
ReactDOM . __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ;
@@ -10747,10 +10739,10 @@ if (__DEV__) {
10747
10739
var previousDispatcher = null ;
10748
10740
10749
10741
{
10750
- previousDispatcher = ReactSharedInternalsServer . H ; // Set the dispatcher in DEV because this might be call in the render function
10742
+ previousDispatcher = ReactSharedInternals . H ; // Set the dispatcher in DEV because this might be call in the render function
10751
10743
// for warnings.
10752
10744
10753
- ReactSharedInternalsServer . H = null ;
10745
+ ReactSharedInternals . H = null ;
10754
10746
disableLogs ( ) ;
10755
10747
}
10756
10748
/**
@@ -10943,7 +10935,7 @@ if (__DEV__) {
10943
10935
reentry = false ;
10944
10936
10945
10937
{
10946
- ReactSharedInternalsServer . H = previousDispatcher ;
10938
+ ReactSharedInternals . H = previousDispatcher ;
10947
10939
reenableLogs ( ) ;
10948
10940
}
10949
10941
@@ -13791,22 +13783,22 @@ if (__DEV__) {
13791
13783
}
13792
13784
13793
13785
var prevContext = getActiveContext ( ) ;
13794
- var prevDispatcher = ReactSharedInternalsServer . H ;
13795
- ReactSharedInternalsServer . H = HooksDispatcher ;
13786
+ var prevDispatcher = ReactSharedInternals . H ;
13787
+ ReactSharedInternals . H = HooksDispatcher ;
13796
13788
var prevCacheDispatcher = null ;
13797
13789
13798
13790
{
13799
- prevCacheDispatcher = ReactSharedInternalsServer . C ;
13800
- ReactSharedInternalsServer . C = DefaultCacheDispatcher ;
13791
+ prevCacheDispatcher = ReactSharedInternals . C ;
13792
+ ReactSharedInternals . C = DefaultCacheDispatcher ;
13801
13793
}
13802
13794
13803
13795
var prevRequest = currentRequest ;
13804
13796
currentRequest = request ;
13805
13797
var prevGetCurrentStackImpl = null ;
13806
13798
13807
13799
{
13808
- prevGetCurrentStackImpl = ReactSharedInternalsServer . getCurrentStack ;
13809
- ReactSharedInternalsServer . getCurrentStack = getCurrentStackInDEV ;
13800
+ prevGetCurrentStackImpl = ReactSharedInternals . getCurrentStack ;
13801
+ ReactSharedInternals . getCurrentStack = getCurrentStackInDEV ;
13810
13802
}
13811
13803
13812
13804
var prevResumableState = currentResumableState ;
@@ -13832,14 +13824,14 @@ if (__DEV__) {
13832
13824
fatalError ( request , error ) ;
13833
13825
} finally {
13834
13826
setCurrentResumableState ( prevResumableState ) ;
13835
- ReactSharedInternalsServer . H = prevDispatcher ;
13827
+ ReactSharedInternals . H = prevDispatcher ;
13836
13828
13837
13829
{
13838
- ReactSharedInternalsServer . C = prevCacheDispatcher ;
13830
+ ReactSharedInternals . C = prevCacheDispatcher ;
13839
13831
}
13840
13832
13841
13833
{
13842
- ReactSharedInternalsServer . getCurrentStack = prevGetCurrentStackImpl ;
13834
+ ReactSharedInternals . getCurrentStack = prevGetCurrentStackImpl ;
13843
13835
}
13844
13836
13845
13837
if ( prevDispatcher === HooksDispatcher ) {
0 commit comments