7
7
* @noflow
8
8
* @nolint
9
9
* @preventMunge
10
- * @generated SignedSource<<0b3d2b1f18482dd826567f1832971cb5 >>
10
+ * @generated SignedSource<<0327ee67e8b4e0b45068a1c519910784 >>
11
11
*/
12
12
13
13
"use strict" ;
@@ -8070,7 +8070,7 @@ beginWork = function (current, workInProgress, renderLanes) {
8070
8070
contextStackCursor$1 . current
8071
8071
) ;
8072
8072
prepareToReadContext ( workInProgress , renderLanes ) ;
8073
- context = renderWithHooks (
8073
+ current = renderWithHooks (
8074
8074
null ,
8075
8075
workInProgress ,
8076
8076
Component ,
@@ -8079,40 +8079,9 @@ beginWork = function (current, workInProgress, renderLanes) {
8079
8079
renderLanes
8080
8080
) ;
8081
8081
workInProgress . flags |= 1 ;
8082
- if (
8083
- "object" === typeof context &&
8084
- null !== context &&
8085
- "function" === typeof context . render &&
8086
- void 0 === context . $$typeof
8087
- ) {
8088
- workInProgress . tag = 1 ;
8089
- workInProgress . memoizedState = null ;
8090
- workInProgress . updateQueue = null ;
8091
- if ( isContextProvider ( Component ) ) {
8092
- var hasContext = ! 0 ;
8093
- pushContextProvider ( workInProgress ) ;
8094
- } else hasContext = ! 1 ;
8095
- workInProgress . memoizedState =
8096
- null !== context . state && void 0 !== context . state
8097
- ? context . state
8098
- : null ;
8099
- initializeUpdateQueue ( workInProgress ) ;
8100
- context . updater = classComponentUpdater ;
8101
- workInProgress . stateNode = context ;
8102
- context . _reactInternals = workInProgress ;
8103
- mountClassInstance ( workInProgress , Component , current , renderLanes ) ;
8104
- workInProgress = finishClassComponent (
8105
- null ,
8106
- workInProgress ,
8107
- Component ,
8108
- ! 0 ,
8109
- hasContext ,
8110
- renderLanes
8111
- ) ;
8112
- } else
8113
- ( workInProgress . tag = 0 ) ,
8114
- reconcileChildren ( null , workInProgress , context , renderLanes ) ,
8115
- ( workInProgress = workInProgress . child ) ;
8082
+ workInProgress . tag = 0 ;
8083
+ reconcileChildren ( null , workInProgress , current , renderLanes ) ;
8084
+ workInProgress = workInProgress . child ;
8116
8085
return workInProgress ;
8117
8086
case 16 :
8118
8087
Component = workInProgress . elementType ;
@@ -8205,18 +8174,18 @@ beginWork = function (current, workInProgress, renderLanes) {
8205
8174
pushHostRootContext ( workInProgress ) ;
8206
8175
if ( null === current )
8207
8176
throw Error ( "Should have a current fiber. This is a bug in React." ) ;
8208
- hasContext = workInProgress . pendingProps ;
8177
+ var nextProps = workInProgress . pendingProps ;
8209
8178
context = workInProgress . memoizedState ;
8210
8179
Component = context . element ;
8211
8180
cloneUpdateQueue ( current , workInProgress ) ;
8212
- processUpdateQueue ( workInProgress , hasContext , null , renderLanes ) ;
8213
- hasContext = workInProgress . memoizedState ;
8214
- var nextCache = hasContext . cache ;
8181
+ processUpdateQueue ( workInProgress , nextProps , null , renderLanes ) ;
8182
+ nextProps = workInProgress . memoizedState ;
8183
+ var nextCache = nextProps . cache ;
8215
8184
pushProvider ( workInProgress , CacheContext , nextCache ) ;
8216
8185
nextCache !== context . cache &&
8217
8186
propagateContextChange ( workInProgress , CacheContext , renderLanes ) ;
8218
8187
suspendIfUpdateReadFromEntangledAsyncAction ( ) ;
8219
- context = hasContext . element ;
8188
+ context = nextProps . element ;
8220
8189
context === Component
8221
8190
? ( workInProgress = bailoutOnAlreadyFinishedWork (
8222
8191
current ,
@@ -8325,13 +8294,13 @@ beginWork = function (current, workInProgress, renderLanes) {
8325
8294
a: {
8326
8295
Component = workInProgress . type . _context ;
8327
8296
context = workInProgress . pendingProps ;
8328
- hasContext = workInProgress . memoizedProps ;
8297
+ nextProps = workInProgress . memoizedProps ;
8329
8298
nextCache = context . value ;
8330
8299
pushProvider ( workInProgress , Component , nextCache ) ;
8331
- if ( null !== hasContext )
8332
- if ( objectIs ( hasContext . value , nextCache ) ) {
8300
+ if ( null !== nextProps )
8301
+ if ( objectIs ( nextProps . value , nextCache ) ) {
8333
8302
if (
8334
- hasContext . children === context . children &&
8303
+ nextProps . children === context . children &&
8335
8304
! didPerformWorkStackCursor . current
8336
8305
) {
8337
8306
workInProgress = bailoutOnAlreadyFinishedWork (
@@ -8420,11 +8389,11 @@ beginWork = function (current, workInProgress, renderLanes) {
8420
8389
? ( ( context = peekCacheFromPool ( ) ) ,
8421
8390
null === context &&
8422
8391
( ( context = workInProgressRoot ) ,
8423
- ( hasContext = createCache ( ) ) ,
8424
- ( context . pooledCache = hasContext ) ,
8425
- hasContext . refCount ++ ,
8426
- null !== hasContext && ( context . pooledCacheLanes |= renderLanes ) ,
8427
- ( context = hasContext ) ) ,
8392
+ ( nextProps = createCache ( ) ) ,
8393
+ ( context . pooledCache = nextProps ) ,
8394
+ nextProps . refCount ++ ,
8395
+ null !== nextProps && ( context . pooledCacheLanes |= renderLanes ) ,
8396
+ ( context = nextProps ) ) ,
8428
8397
( workInProgress . memoizedState = {
8429
8398
parent : Component ,
8430
8399
cache : context
@@ -8436,7 +8405,7 @@ beginWork = function (current, workInProgress, renderLanes) {
8436
8405
processUpdateQueue ( workInProgress , null , null , renderLanes ) ,
8437
8406
suspendIfUpdateReadFromEntangledAsyncAction ( ) ) ,
8438
8407
( context = current . memoizedState ) ,
8439
- ( hasContext = workInProgress . memoizedState ) ,
8408
+ ( nextProps = workInProgress . memoizedState ) ,
8440
8409
context . parent !== Component
8441
8410
? ( ( context = { parent : Component , cache : Component } ) ,
8442
8411
( workInProgress . memoizedState = context ) ,
@@ -8445,7 +8414,7 @@ beginWork = function (current, workInProgress, renderLanes) {
8445
8414
workInProgress . updateQueue . baseState =
8446
8415
context ) ,
8447
8416
pushProvider ( workInProgress , CacheContext , Component ) )
8448
- : ( ( Component = hasContext . cache ) ,
8417
+ : ( ( Component = nextProps . cache ) ,
8449
8418
pushProvider ( workInProgress , CacheContext , Component ) ,
8450
8419
Component !== context . cache &&
8451
8420
propagateContextChange (
@@ -9173,19 +9142,19 @@ function wrapFiber(fiber) {
9173
9142
fiberToWrapper . set ( fiber , wrapper ) ) ;
9174
9143
return wrapper ;
9175
9144
}
9176
- var devToolsConfig$jscomp$inline_1014 = {
9145
+ var devToolsConfig$jscomp$inline_1016 = {
9177
9146
findFiberByHostInstance : function ( ) {
9178
9147
throw Error ( "TestRenderer does not support findFiberByHostInstance()" ) ;
9179
9148
} ,
9180
9149
bundleType : 0 ,
9181
- version : "18.3.0-canary-338dddc08-20240307 " ,
9150
+ version : "18.3.0-canary-4e2fe10fa-20240308 " ,
9182
9151
rendererPackageName : "react-test-renderer"
9183
9152
} ;
9184
- var internals$jscomp$inline_1195 = {
9185
- bundleType : devToolsConfig$jscomp$inline_1014 . bundleType ,
9186
- version : devToolsConfig$jscomp$inline_1014 . version ,
9187
- rendererPackageName : devToolsConfig$jscomp$inline_1014 . rendererPackageName ,
9188
- rendererConfig : devToolsConfig$jscomp$inline_1014 . rendererConfig ,
9153
+ var internals$jscomp$inline_1194 = {
9154
+ bundleType : devToolsConfig$jscomp$inline_1016 . bundleType ,
9155
+ version : devToolsConfig$jscomp$inline_1016 . version ,
9156
+ rendererPackageName : devToolsConfig$jscomp$inline_1016 . rendererPackageName ,
9157
+ rendererConfig : devToolsConfig$jscomp$inline_1016 . rendererConfig ,
9189
9158
overrideHookState : null ,
9190
9159
overrideHookStateDeletePath : null ,
9191
9160
overrideHookStateRenamePath : null ,
@@ -9202,26 +9171,26 @@ var internals$jscomp$inline_1195 = {
9202
9171
return null === fiber ? null : fiber . stateNode ;
9203
9172
} ,
9204
9173
findFiberByHostInstance :
9205
- devToolsConfig$jscomp$inline_1014 . findFiberByHostInstance ||
9174
+ devToolsConfig$jscomp$inline_1016 . findFiberByHostInstance ||
9206
9175
emptyFindFiberByHostInstance ,
9207
9176
findHostInstancesForRefresh : null ,
9208
9177
scheduleRefresh : null ,
9209
9178
scheduleRoot : null ,
9210
9179
setRefreshHandler : null ,
9211
9180
getCurrentFiber : null ,
9212
- reconcilerVersion : "18.3.0-canary-338dddc08-20240307 "
9181
+ reconcilerVersion : "18.3.0-canary-4e2fe10fa-20240308 "
9213
9182
} ;
9214
9183
if ( "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ ) {
9215
- var hook$jscomp$inline_1196 = __REACT_DEVTOOLS_GLOBAL_HOOK__ ;
9184
+ var hook$jscomp$inline_1195 = __REACT_DEVTOOLS_GLOBAL_HOOK__ ;
9216
9185
if (
9217
- ! hook$jscomp$inline_1196 . isDisabled &&
9218
- hook$jscomp$inline_1196 . supportsFiber
9186
+ ! hook$jscomp$inline_1195 . isDisabled &&
9187
+ hook$jscomp$inline_1195 . supportsFiber
9219
9188
)
9220
9189
try {
9221
- ( rendererID = hook$jscomp$inline_1196 . inject (
9222
- internals$jscomp$inline_1195
9190
+ ( rendererID = hook$jscomp$inline_1195 . inject (
9191
+ internals$jscomp$inline_1194
9223
9192
) ) ,
9224
- ( injectedHook = hook$jscomp$inline_1196 ) ;
9193
+ ( injectedHook = hook$jscomp$inline_1195 ) ;
9225
9194
} catch ( err ) { }
9226
9195
}
9227
9196
exports . _Scheduler = Scheduler ;
0 commit comments