@@ -1984,6 +1984,18 @@ __DEV__ &&
1984
1984
));
1985
1985
return skipToNode + debugInfo + propName;
1986
1986
}
1987
+ function upgradeHydrationErrorsToRecoverable() {
1988
+ var queuedErrors = hydrationErrors;
1989
+ null !== queuedErrors &&
1990
+ (null === workInProgressRootRecoverableErrors
1991
+ ? (workInProgressRootRecoverableErrors = queuedErrors)
1992
+ : workInProgressRootRecoverableErrors.push.apply(
1993
+ workInProgressRootRecoverableErrors,
1994
+ queuedErrors
1995
+ ),
1996
+ (hydrationErrors = null));
1997
+ return queuedErrors;
1998
+ }
1987
1999
function resetContextDependencies() {
1988
2000
lastContextDependency = currentlyRenderingFiber$1 = null;
1989
2001
isDisallowedContextReadInDEV = !1;
@@ -9013,9 +9025,7 @@ __DEV__ &&
9013
9025
(current.memoizedState.isDehydrated &&
9014
9026
0 === (workInProgress.flags & 256)) ||
9015
9027
((workInProgress.flags |= 1024),
9016
- null !== hydrationErrors &&
9017
- (queueRecoverableErrors(hydrationErrors),
9018
- (hydrationErrors = null))),
9028
+ upgradeHydrationErrorsToRecoverable()),
9019
9029
bubbleProperties(workInProgress),
9020
9030
enableTransitionTracing &&
9021
9031
0 !== (workInProgress.subtreeFlags & 8192) &&
@@ -9160,9 +9170,12 @@ __DEV__ &&
9160
9170
fallthroughToNormalSuspensePath.treeBaseDuration));
9161
9171
fallthroughToNormalSuspensePath = !1;
9162
9172
} else
9163
- null !== hydrationErrors &&
9164
- (queueRecoverableErrors(hydrationErrors),
9165
- (hydrationErrors = null)),
9173
+ (fallthroughToNormalSuspensePath =
9174
+ upgradeHydrationErrorsToRecoverable()),
9175
+ null !== current &&
9176
+ null !== current.memoizedState &&
9177
+ (current.memoizedState.hydrationErrors =
9178
+ fallthroughToNormalSuspensePath),
9166
9179
(fallthroughToNormalSuspensePath = !0);
9167
9180
if (!fallthroughToNormalSuspensePath) {
9168
9181
if (workInProgress.flags & 256)
@@ -11696,6 +11709,14 @@ __DEV__ &&
11696
11709
committedTransitions
11697
11710
);
11698
11711
break;
11712
+ case 13:
11713
+ recursivelyTraversePassiveMountEffects(
11714
+ finishedRoot,
11715
+ finishedWork,
11716
+ committedLanes,
11717
+ committedTransitions
11718
+ );
11719
+ break;
11699
11720
case 23:
11700
11721
recursivelyTraversePassiveMountEffects(
11701
11722
finishedRoot,
@@ -12434,7 +12455,13 @@ __DEV__ &&
12434
12455
}
12435
12456
exitStatus = workInProgressRootRecoverableErrors;
12436
12457
workInProgressRootRecoverableErrors = lanesThatJustErrored;
12437
- null !== exitStatus && queueRecoverableErrors(exitStatus);
12458
+ null !== exitStatus &&
12459
+ (null === workInProgressRootRecoverableErrors
12460
+ ? (workInProgressRootRecoverableErrors = exitStatus)
12461
+ : workInProgressRootRecoverableErrors.push.apply(
12462
+ workInProgressRootRecoverableErrors,
12463
+ exitStatus
12464
+ ));
12438
12465
}
12439
12466
exitStatus = renderWasConcurrent;
12440
12467
}
@@ -12571,14 +12598,6 @@ __DEV__ &&
12571
12598
} while (1);
12572
12599
ensureRootIsScheduled(root);
12573
12600
}
12574
- function queueRecoverableErrors(errors) {
12575
- null === workInProgressRootRecoverableErrors
12576
- ? (workInProgressRootRecoverableErrors = errors)
12577
- : workInProgressRootRecoverableErrors.push.apply(
12578
- workInProgressRootRecoverableErrors,
12579
- errors
12580
- );
12581
- }
12582
12601
function commitRootWhenReady(
12583
12602
root,
12584
12603
finishedWork,
@@ -16546,7 +16565,12 @@ __DEV__ &&
16546
16565
var didWarnAboutTailOptions = {};
16547
16566
var didWarnAboutDefaultPropsOnFunctionComponent = {};
16548
16567
var updateLegacyHiddenComponent = updateOffscreenComponent,
16549
- SUSPENDED_MARKER = { dehydrated: null, treeContext: null, retryLane: 0 },
16568
+ SUSPENDED_MARKER = {
16569
+ dehydrated: null,
16570
+ treeContext: null,
16571
+ retryLane: 0,
16572
+ hydrationErrors: null
16573
+ },
16550
16574
hasWarnedAboutUsingNoValuePropOnContextProvider = !1,
16551
16575
emptyObject = {},
16552
16576
didWarnAboutUndefinedSnapshotBeforeUpdate = null;
@@ -16870,10 +16894,10 @@ __DEV__ &&
16870
16894
(function () {
16871
16895
var internals = {
16872
16896
bundleType: 1,
16873
- version: "19.1.0-www-classic-faf6c4df-20241218 ",
16897
+ version: "19.1.0-www-classic-a9bbe346-20241219 ",
16874
16898
rendererPackageName: "react-art",
16875
16899
currentDispatcherRef: ReactSharedInternals,
16876
- reconcilerVersion: "19.1.0-www-classic-faf6c4df-20241218 "
16900
+ reconcilerVersion: "19.1.0-www-classic-a9bbe346-20241219 "
16877
16901
};
16878
16902
internals.overrideHookState = overrideHookState;
16879
16903
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16907,7 +16931,7 @@ __DEV__ &&
16907
16931
exports.Shape = Shape;
16908
16932
exports.Surface = Surface;
16909
16933
exports.Text = Text;
16910
- exports.version = "19.1.0-www-classic-faf6c4df-20241218 ";
16934
+ exports.version = "19.1.0-www-classic-a9bbe346-20241219 ";
16911
16935
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
16912
16936
"function" ===
16913
16937
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
0 commit comments