@@ -5129,7 +5129,9 @@ function findFirstSuspended(row) {
5129
5129
if (
5130
5130
null !== state &&
5131
5131
((state = state.dehydrated),
5132
- null === state || "$?" === state.data || "$!" === state.data)
5132
+ null === state ||
5133
+ "$?" === state.data ||
5134
+ isSuspenseInstanceFallback(state))
5133
5135
)
5134
5136
return node;
5135
5137
} else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) {
@@ -6174,7 +6176,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6174
6176
((nextInstance = nextInstance.dehydrated), null !== nextInstance)
6175
6177
)
6176
6178
return (
6177
- "$!" === nextInstance.data
6179
+ isSuspenseInstanceFallback( nextInstance)
6178
6180
? (workInProgress.lanes = 16)
6179
6181
: (workInProgress.lanes = 536870912),
6180
6182
null
@@ -6281,7 +6283,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6281
6283
(workInProgress = showFallback));
6282
6284
else if (
6283
6285
(pushPrimaryTreeSuspenseHandler(workInProgress),
6284
- "$!" === nextInstance.data )
6286
+ isSuspenseInstanceFallback( nextInstance) )
6285
6287
) {
6286
6288
JSCompiler_temp =
6287
6289
nextInstance.nextSibling && nextInstance.nextSibling.dataset;
@@ -6365,13 +6367,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6365
6367
);
6366
6368
} else
6367
6369
"$?" === nextInstance.data
6368
- ? ((workInProgress.flags |= 128 ),
6370
+ ? ((workInProgress.flags |= 192 ),
6369
6371
(workInProgress.child = current.child),
6370
- (workInProgress = retryDehydratedSuspenseBoundary.bind(
6371
- null,
6372
- current
6373
- )),
6374
- (nextInstance._reactRetry = workInProgress),
6375
6372
(workInProgress = null))
6376
6373
: ((current = JSCompiler_temp$jscomp$0.treeContext),
6377
6374
(nextHydratableInstance = getNextHydratable(
@@ -8121,6 +8118,16 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
8121
8118
case 13:
8122
8119
recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
8123
8120
flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
8121
+ flags & 64 &&
8122
+ ((flags = finishedWork.memoizedState),
8123
+ null !== flags &&
8124
+ ((flags = flags.dehydrated),
8125
+ null !== flags &&
8126
+ ((finishedWork = retryDehydratedSuspenseBoundary.bind(
8127
+ null,
8128
+ finishedWork
8129
+ )),
8130
+ registerSuspenseInstanceRetry(flags, finishedWork))));
8124
8131
break;
8125
8132
case 22:
8126
8133
prevProps =
@@ -11782,20 +11789,20 @@ function extractEvents$1(
11782
11789
}
11783
11790
}
11784
11791
for (
11785
- var i$jscomp$inline_1433 = 0;
11786
- i$jscomp$inline_1433 < simpleEventPluginEvents.length;
11787
- i$jscomp$inline_1433 ++
11792
+ var i$jscomp$inline_1429 = 0;
11793
+ i$jscomp$inline_1429 < simpleEventPluginEvents.length;
11794
+ i$jscomp$inline_1429 ++
11788
11795
) {
11789
- var eventName$jscomp$inline_1434 =
11790
- simpleEventPluginEvents[i$jscomp$inline_1433 ],
11791
- domEventName$jscomp$inline_1435 =
11792
- eventName$jscomp$inline_1434 .toLowerCase(),
11793
- capitalizedEvent$jscomp$inline_1436 =
11794
- eventName$jscomp$inline_1434 [0].toUpperCase() +
11795
- eventName$jscomp$inline_1434 .slice(1);
11796
+ var eventName$jscomp$inline_1430 =
11797
+ simpleEventPluginEvents[i$jscomp$inline_1429 ],
11798
+ domEventName$jscomp$inline_1431 =
11799
+ eventName$jscomp$inline_1430 .toLowerCase(),
11800
+ capitalizedEvent$jscomp$inline_1432 =
11801
+ eventName$jscomp$inline_1430 [0].toUpperCase() +
11802
+ eventName$jscomp$inline_1430 .slice(1);
11796
11803
registerSimpleEvent(
11797
- domEventName$jscomp$inline_1435 ,
11798
- "on" + capitalizedEvent$jscomp$inline_1436
11804
+ domEventName$jscomp$inline_1431 ,
11805
+ "on" + capitalizedEvent$jscomp$inline_1432
11799
11806
);
11800
11807
}
11801
11808
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -13684,6 +13691,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
13684
13691
}
13685
13692
return instance;
13686
13693
}
13694
+ function isSuspenseInstanceFallback(instance) {
13695
+ return (
13696
+ "$!" === instance.data ||
13697
+ ("$?" === instance.data && "complete" === instance.ownerDocument.readyState)
13698
+ );
13699
+ }
13700
+ function registerSuspenseInstanceRetry(instance, callback) {
13701
+ var ownerDocument = instance.ownerDocument;
13702
+ if ("$?" !== instance.data || "complete" === ownerDocument.readyState)
13703
+ callback();
13704
+ else {
13705
+ var listener = function () {
13706
+ callback();
13707
+ ownerDocument.removeEventListener("DOMContentLoaded", listener);
13708
+ };
13709
+ ownerDocument.addEventListener("DOMContentLoaded", listener);
13710
+ instance._reactRetry = listener;
13711
+ }
13712
+ }
13687
13713
function getNextHydratable(node) {
13688
13714
for (; null != node; node = node.nextSibling) {
13689
13715
var nodeType = node.nodeType;
@@ -15236,16 +15262,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15236
15262
0 === i && attemptExplicitHydrationTarget(target);
15237
15263
}
15238
15264
};
15239
- var isomorphicReactPackageVersion$jscomp$inline_1680 = React.version;
15265
+ var isomorphicReactPackageVersion$jscomp$inline_1676 = React.version;
15240
15266
if (
15241
- "19.0.0-experimental-1b1283ad-20241203 " !==
15242
- isomorphicReactPackageVersion$jscomp$inline_1680
15267
+ "19.0.0-experimental-de68d2f4-20241204 " !==
15268
+ isomorphicReactPackageVersion$jscomp$inline_1676
15243
15269
)
15244
15270
throw Error(
15245
15271
formatProdErrorMessage(
15246
15272
527,
15247
- isomorphicReactPackageVersion$jscomp$inline_1680 ,
15248
- "19.0.0-experimental-1b1283ad-20241203 "
15273
+ isomorphicReactPackageVersion$jscomp$inline_1676 ,
15274
+ "19.0.0-experimental-de68d2f4-20241204 "
15249
15275
)
15250
15276
);
15251
15277
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15265,25 +15291,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15265
15291
null === componentOrElement ? null : componentOrElement.stateNode;
15266
15292
return componentOrElement;
15267
15293
};
15268
- var internals$jscomp$inline_2153 = {
15294
+ var internals$jscomp$inline_2146 = {
15269
15295
bundleType: 0,
15270
- version: "19.0.0-experimental-1b1283ad-20241203 ",
15296
+ version: "19.0.0-experimental-de68d2f4-20241204 ",
15271
15297
rendererPackageName: "react-dom",
15272
15298
currentDispatcherRef: ReactSharedInternals,
15273
15299
findFiberByHostInstance: getClosestInstanceFromNode,
15274
- reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203 "
15300
+ reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204 "
15275
15301
};
15276
15302
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15277
- var hook$jscomp$inline_2154 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15303
+ var hook$jscomp$inline_2147 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15278
15304
if (
15279
- !hook$jscomp$inline_2154 .isDisabled &&
15280
- hook$jscomp$inline_2154 .supportsFiber
15305
+ !hook$jscomp$inline_2147 .isDisabled &&
15306
+ hook$jscomp$inline_2147 .supportsFiber
15281
15307
)
15282
15308
try {
15283
- (rendererID = hook$jscomp$inline_2154 .inject(
15284
- internals$jscomp$inline_2153
15309
+ (rendererID = hook$jscomp$inline_2147 .inject(
15310
+ internals$jscomp$inline_2146
15285
15311
)),
15286
- (injectedHook = hook$jscomp$inline_2154 );
15312
+ (injectedHook = hook$jscomp$inline_2147 );
15287
15313
} catch (err) {}
15288
15314
}
15289
15315
exports.createRoot = function (container, options) {
@@ -15375,4 +15401,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15375
15401
listenToAllSupportedEvents(container);
15376
15402
return new ReactDOMHydrationRoot(initialChildren);
15377
15403
};
15378
- exports.version = "19.0.0-experimental-1b1283ad-20241203 ";
15404
+ exports.version = "19.0.0-experimental-de68d2f4-20241204 ";
0 commit comments