7
7
* @noflow
8
8
* @nolint
9
9
* @preventMunge
10
- * @generated SignedSource<<493cdb9fbf258eb499287015c0434886 >>
10
+ * @generated SignedSource<<87f2bb9cd01d048068daf2853de59b90 >>
11
11
*/
12
12
13
13
"use strict" ;
@@ -2133,9 +2133,7 @@ function findFirstSuspended(row) {
2133
2133
}
2134
2134
return null ;
2135
2135
}
2136
- var ReactCurrentDispatcher$1 = ReactSharedInternals . ReactCurrentDispatcher ,
2137
- ReactCurrentBatchConfig$2 = ReactSharedInternals . ReactCurrentBatchConfig ,
2138
- renderLanes = 0 ,
2136
+ var renderLanes = 0 ,
2139
2137
currentlyRenderingFiber$1 = null ,
2140
2138
currentHook = null ,
2141
2139
workInProgressHook = null ,
@@ -2169,7 +2167,7 @@ function renderWithHooks(
2169
2167
workInProgress . memoizedState = null ;
2170
2168
workInProgress . updateQueue = null ;
2171
2169
workInProgress . lanes = 0 ;
2172
- ReactCurrentDispatcher$1 . current =
2170
+ ReactSharedInternals . H =
2173
2171
null === current || null === current . memoizedState
2174
2172
? HooksDispatcherOnMount
2175
2173
: HooksDispatcherOnUpdate ;
@@ -2187,7 +2185,7 @@ function renderWithHooks(
2187
2185
return current ;
2188
2186
}
2189
2187
function finishRenderingHooks ( ) {
2190
- ReactCurrentDispatcher$1 . current = ContextOnlyDispatcher ;
2188
+ ReactSharedInternals . H = ContextOnlyDispatcher ;
2191
2189
var didRenderTooFewHooks = null !== currentHook && null !== currentHook . next ;
2192
2190
renderLanes = 0 ;
2193
2191
workInProgressHook = currentHook = currentlyRenderingFiber$1 = null ;
@@ -2213,13 +2211,13 @@ function renderWithHooksAgain(workInProgress, Component, props, secondArg) {
2213
2211
numberOfReRenders += 1 ;
2214
2212
workInProgressHook = currentHook = null ;
2215
2213
workInProgress . updateQueue = null ;
2216
- ReactCurrentDispatcher$1 . current = HooksDispatcherOnRerender ;
2214
+ ReactSharedInternals . H = HooksDispatcherOnRerender ;
2217
2215
var children = Component ( props , secondArg ) ;
2218
2216
} while ( didScheduleRenderPhaseUpdateDuringThisPass ) ;
2219
2217
return children ;
2220
2218
}
2221
2219
function TransitionAwareHostComponent ( ) {
2222
- var maybeThenable = ReactCurrentDispatcher$1 . current . useState ( ) [ 0 ] ;
2220
+ var maybeThenable = ReactSharedInternals . H . useState ( ) [ 0 ] ;
2223
2221
return "function" === typeof maybeThenable . then
2224
2222
? useThenable ( maybeThenable )
2225
2223
: maybeThenable ;
@@ -2310,7 +2308,7 @@ function useThenable(thenable) {
2310
2308
( null === workInProgressHook
2311
2309
? null === currentlyRenderingFiber$1 . memoizedState
2312
2310
: null === workInProgressHook . next ) &&
2313
- ( ReactCurrentDispatcher$1 . current = HooksDispatcherOnMount ) ;
2311
+ ( ReactSharedInternals . H = HooksDispatcherOnMount ) ;
2314
2312
return thenable ;
2315
2313
}
2316
2314
function use ( usable ) {
@@ -2610,9 +2608,9 @@ function dispatchActionState(
2610
2608
function runActionStateAction ( actionQueue , setPendingState , setState , payload ) {
2611
2609
var action = actionQueue . action ,
2612
2610
prevState = actionQueue . state ,
2613
- prevTransition = ReactCurrentBatchConfig$2 . transition ,
2611
+ prevTransition = ReactSharedInternals . T ,
2614
2612
currentTransition = { _callbacks : new Set ( ) } ;
2615
- ReactCurrentBatchConfig$2 . transition = currentTransition ;
2613
+ ReactSharedInternals . T = currentTransition ;
2616
2614
setPendingState ( ! 0 ) ;
2617
2615
try {
2618
2616
var returnValue = action ( prevState , payload ) ;
@@ -2645,7 +2643,7 @@ function runActionStateAction(actionQueue, setPendingState, setState, payload) {
2645
2643
setState ( { then : function ( ) { } , status : "rejected" , reason : error } ) ,
2646
2644
finishRunningActionStateAction ( actionQueue , setPendingState , setState ) ;
2647
2645
} finally {
2648
- ReactCurrentBatchConfig$2 . transition = prevTransition ;
2646
+ ReactSharedInternals . T = prevTransition ;
2649
2647
}
2650
2648
}
2651
2649
function finishRunningActionStateAction (
@@ -2882,9 +2880,9 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
2882
2880
var previousPriority = currentUpdatePriority ;
2883
2881
currentUpdatePriority =
2884
2882
0 !== previousPriority && 8 > previousPriority ? previousPriority : 8 ;
2885
- var prevTransition = ReactCurrentBatchConfig$2 . transition ,
2883
+ var prevTransition = ReactSharedInternals . T ,
2886
2884
currentTransition = { _callbacks : new Set ( ) } ;
2887
- ReactCurrentBatchConfig$2 . transition = currentTransition ;
2885
+ ReactSharedInternals . T = currentTransition ;
2888
2886
dispatchOptimisticSetState ( fiber , ! 1 , queue , pendingState ) ;
2889
2887
try {
2890
2888
var returnValue = callback ( ) ;
@@ -2908,7 +2906,7 @@ function startTransition(fiber, queue, pendingState, finishedState, callback) {
2908
2906
} ) ;
2909
2907
} finally {
2910
2908
( currentUpdatePriority = previousPriority ) ,
2911
- ( ReactCurrentBatchConfig$2 . transition = prevTransition ) ;
2909
+ ( ReactSharedInternals . T = prevTransition ) ;
2912
2910
}
2913
2911
}
2914
2912
function useHostTransitionStatus ( ) {
@@ -3744,8 +3742,7 @@ function throwException(
3744
3742
} while ( null !== returnFiber ) ;
3745
3743
return ! 1 ;
3746
3744
}
3747
- var ReactCurrentOwner$1 = ReactSharedInternals . ReactCurrentOwner ,
3748
- SelectiveHydrationException = Error (
3745
+ var SelectiveHydrationException = Error (
3749
3746
"This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."
3750
3747
) ,
3751
3748
didReceiveUpdate = ! 1 ;
@@ -4242,7 +4239,7 @@ function finishClassComponent(
4242
4239
bailoutOnAlreadyFinishedWork ( current , workInProgress , renderLanes )
4243
4240
) ;
4244
4241
shouldUpdate = workInProgress . stateNode ;
4245
- ReactCurrentOwner$1 . current = workInProgress ;
4242
+ ReactSharedInternals . owner = workInProgress ;
4246
4243
var nextChildren =
4247
4244
didCaptureError && "function" !== typeof Component . getDerivedStateFromError
4248
4245
? null
@@ -5438,9 +5435,8 @@ function releaseCache(cache) {
5438
5435
cache . controller . abort ( ) ;
5439
5436
} ) ;
5440
5437
}
5441
- var ReactCurrentBatchConfig$1 = ReactSharedInternals . ReactCurrentBatchConfig ;
5442
5438
function requestCurrentTransition ( ) {
5443
- var transition = ReactCurrentBatchConfig$1 . transition ;
5439
+ var transition = ReactSharedInternals . T ;
5444
5440
null !== transition && transition . _callbacks . add ( handleAsyncAction ) ;
5445
5441
return transition ;
5446
5442
}
@@ -7383,10 +7379,6 @@ var DefaultCacheDispatcher = {
7383
7379
}
7384
7380
} ,
7385
7381
PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map ,
7386
- ReactCurrentDispatcher = ReactSharedInternals . ReactCurrentDispatcher ,
7387
- ReactCurrentCache = ReactSharedInternals . ReactCurrentCache ,
7388
- ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ,
7389
- ReactCurrentBatchConfig = ReactSharedInternals . ReactCurrentBatchConfig ,
7390
7382
executionContext = 0 ,
7391
7383
workInProgressRoot = null ,
7392
7384
workInProgress = null ,
@@ -7740,18 +7732,14 @@ function flushSyncFromReconciler(fn) {
7740
7732
flushPassiveEffects ( ) ;
7741
7733
var prevExecutionContext = executionContext ;
7742
7734
executionContext |= 1 ;
7743
- var prevTransition = ReactCurrentBatchConfig . transition ,
7735
+ var prevTransition = ReactSharedInternals . T ,
7744
7736
previousPriority = currentUpdatePriority ;
7745
7737
try {
7746
- if (
7747
- ( ( currentUpdatePriority = 2 ) ,
7748
- ( ReactCurrentBatchConfig . transition = null ) ,
7749
- fn )
7750
- )
7738
+ if ( ( ( currentUpdatePriority = 2 ) , ( ReactSharedInternals . T = null ) , fn ) )
7751
7739
return fn ( ) ;
7752
7740
} finally {
7753
7741
( currentUpdatePriority = previousPriority ) ,
7754
- ( ReactCurrentBatchConfig . transition = prevTransition ) ,
7742
+ ( ReactSharedInternals . T = prevTransition ) ,
7755
7743
( executionContext = prevExecutionContext ) ,
7756
7744
0 === ( executionContext & 6 ) && flushSyncWorkAcrossRoots_impl ( ! 1 ) ;
7757
7745
}
@@ -7817,8 +7805,8 @@ function prepareFreshStack(root, lanes) {
7817
7805
}
7818
7806
function handleThrow ( root , thrownValue ) {
7819
7807
currentlyRenderingFiber$1 = null ;
7820
- ReactCurrentDispatcher$1 . current = ContextOnlyDispatcher ;
7821
- ReactCurrentOwner . current = null ;
7808
+ ReactSharedInternals . H = ContextOnlyDispatcher ;
7809
+ ReactSharedInternals . owner = null ;
7822
7810
if ( thrownValue === SuspenseException ) {
7823
7811
thrownValue = getSuspendedThenable ( ) ;
7824
7812
var handler = suspenseHandlerStackCursor . current ;
@@ -7856,13 +7844,13 @@ function handleThrow(root, thrownValue) {
7856
7844
) ) ;
7857
7845
}
7858
7846
function pushDispatcher ( ) {
7859
- var prevDispatcher = ReactCurrentDispatcher . current ;
7860
- ReactCurrentDispatcher . current = ContextOnlyDispatcher ;
7847
+ var prevDispatcher = ReactSharedInternals . H ;
7848
+ ReactSharedInternals . H = ContextOnlyDispatcher ;
7861
7849
return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher ;
7862
7850
}
7863
7851
function pushCacheDispatcher ( ) {
7864
- var prevCacheDispatcher = ReactCurrentCache . current ;
7865
- ReactCurrentCache . current = DefaultCacheDispatcher ;
7852
+ var prevCacheDispatcher = ReactSharedInternals . C ;
7853
+ ReactSharedInternals . C = DefaultCacheDispatcher ;
7866
7854
return prevCacheDispatcher ;
7867
7855
}
7868
7856
function renderDidSuspendDelayIfPossible ( ) {
@@ -7914,8 +7902,8 @@ function renderRootSync(root, lanes) {
7914
7902
lanes && root . shellSuspendCounter ++ ;
7915
7903
resetContextDependencies ( ) ;
7916
7904
executionContext = prevExecutionContext ;
7917
- ReactCurrentDispatcher . current = prevDispatcher ;
7918
- ReactCurrentCache . current = prevCacheDispatcher ;
7905
+ ReactSharedInternals . H = prevDispatcher ;
7906
+ ReactSharedInternals . C = prevCacheDispatcher ;
7919
7907
if ( null !== workInProgress )
7920
7908
throw Error (
7921
7909
"Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue."
@@ -8021,8 +8009,8 @@ function renderRootConcurrent(root, lanes) {
8021
8009
}
8022
8010
while ( 1 ) ;
8023
8011
resetContextDependencies ( ) ;
8024
- ReactCurrentDispatcher . current = prevDispatcher ;
8025
- ReactCurrentCache . current = prevCacheDispatcher ;
8012
+ ReactSharedInternals . H = prevDispatcher ;
8013
+ ReactSharedInternals . C = prevCacheDispatcher ;
8026
8014
executionContext = prevExecutionContext ;
8027
8015
if ( null !== workInProgress ) return 0 ;
8028
8016
workInProgressRoot = null ;
@@ -8038,7 +8026,7 @@ function performUnitOfWork(unitOfWork) {
8038
8026
var next = beginWork ( unitOfWork . alternate , unitOfWork , entangledRenderLanes ) ;
8039
8027
unitOfWork . memoizedProps = unitOfWork . pendingProps ;
8040
8028
null === next ? completeUnitOfWork ( unitOfWork ) : ( workInProgress = next ) ;
8041
- ReactCurrentOwner . current = null ;
8029
+ ReactSharedInternals . owner = null ;
8042
8030
}
8043
8031
function replaySuspendedUnitOfWork ( unitOfWork ) {
8044
8032
var current = unitOfWork . alternate ;
@@ -8092,7 +8080,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
8092
8080
null === current
8093
8081
? completeUnitOfWork ( unitOfWork )
8094
8082
: ( workInProgress = current ) ;
8095
- ReactCurrentOwner . current = null ;
8083
+ ReactSharedInternals . owner = null ;
8096
8084
}
8097
8085
function throwAndUnwindWorkLoop ( root , unitOfWork , thrownValue ) {
8098
8086
resetContextDependencies ( ) ;
@@ -8179,11 +8167,11 @@ function commitRoot(
8179
8167
didIncludeRenderPhaseUpdate ,
8180
8168
spawnedLane
8181
8169
) {
8182
- var prevTransition = ReactCurrentBatchConfig . transition ,
8170
+ var prevTransition = ReactSharedInternals . T ,
8183
8171
previousUpdateLanePriority = currentUpdatePriority ;
8184
8172
try {
8185
8173
( currentUpdatePriority = 2 ) ,
8186
- ( ReactCurrentBatchConfig . transition = null ) ,
8174
+ ( ReactSharedInternals . T = null ) ,
8187
8175
commitRootImpl (
8188
8176
root ,
8189
8177
recoverableErrors ,
@@ -8193,7 +8181,7 @@ function commitRoot(
8193
8181
spawnedLane
8194
8182
) ;
8195
8183
} finally {
8196
- ( ReactCurrentBatchConfig . transition = prevTransition ) ,
8184
+ ( ReactSharedInternals . T = prevTransition ) ,
8197
8185
( currentUpdatePriority = previousUpdateLanePriority ) ;
8198
8186
}
8199
8187
return null ;
@@ -8240,21 +8228,21 @@ function commitRootImpl(
8240
8228
} ) ) ;
8241
8229
transitions = 0 !== ( finishedWork . flags & 15990 ) ;
8242
8230
if ( 0 !== ( finishedWork . subtreeFlags & 15990 ) || transitions ) {
8243
- transitions = ReactCurrentBatchConfig . transition ;
8244
- ReactCurrentBatchConfig . transition = null ;
8231
+ transitions = ReactSharedInternals . T ;
8232
+ ReactSharedInternals . T = null ;
8245
8233
spawnedLane = currentUpdatePriority ;
8246
8234
currentUpdatePriority = 2 ;
8247
8235
var prevExecutionContext = executionContext ;
8248
8236
executionContext |= 4 ;
8249
- ReactCurrentOwner . current = null ;
8237
+ ReactSharedInternals . owner = null ;
8250
8238
commitBeforeMutationEffects ( root , finishedWork ) ;
8251
8239
commitMutationEffectsOnFiber ( finishedWork , root ) ;
8252
8240
root . current = finishedWork ;
8253
8241
commitLayoutEffectOnFiber ( root , finishedWork . alternate , finishedWork ) ;
8254
8242
requestPaint ( ) ;
8255
8243
executionContext = prevExecutionContext ;
8256
8244
currentUpdatePriority = spawnedLane ;
8257
- ReactCurrentBatchConfig . transition = transitions ;
8245
+ ReactSharedInternals . T = transitions ;
8258
8246
} else root . current = finishedWork ;
8259
8247
rootDoesHavePassiveEffects
8260
8248
? ( ( rootDoesHavePassiveEffects = ! 1 ) ,
@@ -8299,11 +8287,11 @@ function flushPassiveEffects() {
8299
8287
remainingLanes = pendingPassiveEffectsRemainingLanes ;
8300
8288
pendingPassiveEffectsRemainingLanes = 0 ;
8301
8289
var renderPriority = lanesToEventPriority ( pendingPassiveEffectsLanes ) ,
8302
- prevTransition = ReactCurrentBatchConfig . transition ,
8290
+ prevTransition = ReactSharedInternals . T ,
8303
8291
previousPriority = currentUpdatePriority ;
8304
8292
try {
8305
8293
currentUpdatePriority = 32 > renderPriority ? 32 : renderPriority ;
8306
- ReactCurrentBatchConfig . transition = null ;
8294
+ ReactSharedInternals . T = null ;
8307
8295
if ( null === rootWithPendingPassiveEffects )
8308
8296
var JSCompiler_inline_result = ! 1 ;
8309
8297
else {
@@ -8338,7 +8326,7 @@ function flushPassiveEffects() {
8338
8326
return JSCompiler_inline_result ;
8339
8327
} finally {
8340
8328
( currentUpdatePriority = previousPriority ) ,
8341
- ( ReactCurrentBatchConfig . transition = prevTransition ) ,
8329
+ ( ReactSharedInternals . T = prevTransition ) ,
8342
8330
releaseRootPooledCache ( root , remainingLanes ) ;
8343
8331
}
8344
8332
}
@@ -9153,10 +9141,10 @@ var devToolsConfig$jscomp$inline_1000 = {
9153
9141
throw Error ( "TestRenderer does not support findFiberByHostInstance()" ) ;
9154
9142
} ,
9155
9143
bundleType : 0 ,
9156
- version : "19.0.0-canary-0c75b31c " ,
9144
+ version : "19.0.0-canary-3a10429d " ,
9157
9145
rendererPackageName : "react-test-renderer"
9158
9146
} ;
9159
- var internals$jscomp$inline_1222 = {
9147
+ var internals$jscomp$inline_1221 = {
9160
9148
bundleType : devToolsConfig$jscomp$inline_1000 . bundleType ,
9161
9149
version : devToolsConfig$jscomp$inline_1000 . version ,
9162
9150
rendererPackageName : devToolsConfig$jscomp$inline_1000 . rendererPackageName ,
@@ -9170,7 +9158,7 @@ var internals$jscomp$inline_1222 = {
9170
9158
setErrorHandler : null ,
9171
9159
setSuspenseHandler : null ,
9172
9160
scheduleUpdate : null ,
9173
- currentDispatcherRef : ReactSharedInternals . ReactCurrentDispatcher ,
9161
+ currentDispatcherRef : ReactSharedInternals ,
9174
9162
findHostInstanceByFiber : function ( fiber ) {
9175
9163
fiber = findCurrentFiberUsingSlowPath ( fiber ) ;
9176
9164
fiber = null !== fiber ? findCurrentHostFiberImpl ( fiber ) : null ;
@@ -9184,19 +9172,19 @@ var internals$jscomp$inline_1222 = {
9184
9172
scheduleRoot : null ,
9185
9173
setRefreshHandler : null ,
9186
9174
getCurrentFiber : null ,
9187
- reconcilerVersion : "19.0.0-canary-0c75b31c "
9175
+ reconcilerVersion : "19.0.0-canary-3a10429d "
9188
9176
} ;
9189
9177
if ( "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ ) {
9190
- var hook$jscomp$inline_1223 = __REACT_DEVTOOLS_GLOBAL_HOOK__ ;
9178
+ var hook$jscomp$inline_1222 = __REACT_DEVTOOLS_GLOBAL_HOOK__ ;
9191
9179
if (
9192
- ! hook$jscomp$inline_1223 . isDisabled &&
9193
- hook$jscomp$inline_1223 . supportsFiber
9180
+ ! hook$jscomp$inline_1222 . isDisabled &&
9181
+ hook$jscomp$inline_1222 . supportsFiber
9194
9182
)
9195
9183
try {
9196
- ( rendererID = hook$jscomp$inline_1223 . inject (
9197
- internals$jscomp$inline_1222
9184
+ ( rendererID = hook$jscomp$inline_1222 . inject (
9185
+ internals$jscomp$inline_1221
9198
9186
) ) ,
9199
- ( injectedHook = hook$jscomp$inline_1223 ) ;
9187
+ ( injectedHook = hook$jscomp$inline_1222 ) ;
9200
9188
} catch ( err ) { }
9201
9189
}
9202
9190
exports . _Scheduler = Scheduler ;
0 commit comments