react-dom 19.2.0-canary-d85f86cf-20250514 → 19.2.0-canary-4448b187-20250515
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react-dom-client.development.js +5 -5
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +5 -5
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +134 -91
- package/cjs/react-dom-server-legacy.browser.production.js +179 -128
- package/cjs/react-dom-server-legacy.node.development.js +134 -91
- package/cjs/react-dom-server-legacy.node.production.js +179 -128
- package/cjs/react-dom-server.browser.development.js +137 -93
- package/cjs/react-dom-server.browser.production.js +164 -110
- package/cjs/react-dom-server.bun.development.js +134 -100
- package/cjs/react-dom-server.bun.production.js +167 -113
- package/cjs/react-dom-server.edge.development.js +137 -93
- package/cjs/react-dom-server.edge.production.js +164 -110
- package/cjs/react-dom-server.node.development.js +137 -93
- package/cjs/react-dom-server.node.production.js +164 -110
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -761,71 +761,71 @@
|
|
761
761
|
function createPreambleState() {
|
762
762
|
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
763
763
|
}
|
764
|
-
function createFormatContext(
|
764
|
+
function createFormatContext(
|
765
|
+
insertionMode,
|
766
|
+
selectedValue,
|
767
|
+
tagScope,
|
768
|
+
viewTransition
|
769
|
+
) {
|
765
770
|
return {
|
766
771
|
insertionMode: insertionMode,
|
767
772
|
selectedValue: selectedValue,
|
768
|
-
tagScope: tagScope
|
773
|
+
tagScope: tagScope,
|
774
|
+
viewTransition: viewTransition
|
769
775
|
};
|
770
776
|
}
|
771
777
|
function getChildFormatContext(parentContext, type, props) {
|
778
|
+
var subtreeScope = parentContext.tagScope & -25;
|
772
779
|
switch (type) {
|
773
780
|
case "noscript":
|
774
|
-
return createFormatContext(
|
775
|
-
HTML_MODE,
|
776
|
-
null,
|
777
|
-
parentContext.tagScope | 1
|
778
|
-
);
|
781
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
|
779
782
|
case "select":
|
780
783
|
return createFormatContext(
|
781
784
|
HTML_MODE,
|
782
785
|
null != props.value ? props.value : props.defaultValue,
|
783
|
-
|
786
|
+
subtreeScope,
|
787
|
+
null
|
784
788
|
);
|
785
789
|
case "svg":
|
786
|
-
return createFormatContext(SVG_MODE, null,
|
790
|
+
return createFormatContext(SVG_MODE, null, subtreeScope, null);
|
787
791
|
case "picture":
|
788
|
-
return createFormatContext(
|
789
|
-
HTML_MODE,
|
790
|
-
null,
|
791
|
-
parentContext.tagScope | 2
|
792
|
-
);
|
792
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
|
793
793
|
case "math":
|
794
|
-
return createFormatContext(MATHML_MODE, null,
|
794
|
+
return createFormatContext(MATHML_MODE, null, subtreeScope, null);
|
795
795
|
case "foreignObject":
|
796
|
-
return createFormatContext(HTML_MODE, null,
|
796
|
+
return createFormatContext(HTML_MODE, null, subtreeScope, null);
|
797
797
|
case "table":
|
798
|
-
return createFormatContext(
|
799
|
-
HTML_TABLE_MODE,
|
800
|
-
null,
|
801
|
-
parentContext.tagScope
|
802
|
-
);
|
798
|
+
return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
|
803
799
|
case "thead":
|
804
800
|
case "tbody":
|
805
801
|
case "tfoot":
|
806
802
|
return createFormatContext(
|
807
803
|
HTML_TABLE_BODY_MODE,
|
808
804
|
null,
|
809
|
-
|
805
|
+
subtreeScope,
|
806
|
+
null
|
810
807
|
);
|
811
808
|
case "colgroup":
|
812
809
|
return createFormatContext(
|
813
810
|
HTML_COLGROUP_MODE,
|
814
811
|
null,
|
815
|
-
|
812
|
+
subtreeScope,
|
813
|
+
null
|
816
814
|
);
|
817
815
|
case "tr":
|
818
816
|
return createFormatContext(
|
819
817
|
HTML_TABLE_ROW_MODE,
|
820
818
|
null,
|
821
|
-
|
819
|
+
subtreeScope,
|
820
|
+
null
|
822
821
|
);
|
823
822
|
case "head":
|
824
823
|
if (parentContext.insertionMode < HTML_MODE)
|
825
824
|
return createFormatContext(
|
826
825
|
HTML_HEAD_MODE,
|
827
826
|
null,
|
828
|
-
|
827
|
+
subtreeScope,
|
828
|
+
null
|
829
829
|
);
|
830
830
|
break;
|
831
831
|
case "html":
|
@@ -833,13 +833,50 @@
|
|
833
833
|
return createFormatContext(
|
834
834
|
HTML_HTML_MODE,
|
835
835
|
null,
|
836
|
-
|
836
|
+
subtreeScope,
|
837
|
+
null
|
837
838
|
);
|
838
839
|
}
|
839
840
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
840
841
|
parentContext.insertionMode < HTML_MODE
|
841
|
-
? createFormatContext(HTML_MODE, null,
|
842
|
-
: parentContext
|
842
|
+
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
843
|
+
: parentContext.tagScope !== subtreeScope
|
844
|
+
? createFormatContext(
|
845
|
+
parentContext.insertionMode,
|
846
|
+
parentContext.selectedValue,
|
847
|
+
subtreeScope,
|
848
|
+
null
|
849
|
+
)
|
850
|
+
: parentContext;
|
851
|
+
}
|
852
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
853
|
+
return null === parentViewTransition
|
854
|
+
? null
|
855
|
+
: {
|
856
|
+
update: parentViewTransition.update,
|
857
|
+
enter: null,
|
858
|
+
exit: null,
|
859
|
+
share: parentViewTransition.update,
|
860
|
+
name: parentViewTransition.autoName,
|
861
|
+
autoName: parentViewTransition.autoName,
|
862
|
+
nameIdx: 0
|
863
|
+
};
|
864
|
+
}
|
865
|
+
function getSuspenseFallbackFormatContext(parentContext) {
|
866
|
+
return createFormatContext(
|
867
|
+
parentContext.insertionMode,
|
868
|
+
parentContext.selectedValue,
|
869
|
+
parentContext.tagScope | 12,
|
870
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
871
|
+
);
|
872
|
+
}
|
873
|
+
function getSuspenseContentFormatContext(parentContext) {
|
874
|
+
return createFormatContext(
|
875
|
+
parentContext.insertionMode,
|
876
|
+
parentContext.selectedValue,
|
877
|
+
parentContext.tagScope | 16,
|
878
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
879
|
+
);
|
843
880
|
}
|
844
881
|
function pushStyleAttribute(target, style) {
|
845
882
|
if ("object" !== typeof style)
|
@@ -1546,8 +1583,7 @@
|
|
1546
1583
|
preambleState,
|
1547
1584
|
hoistableState,
|
1548
1585
|
formatContext,
|
1549
|
-
textEmbedded
|
1550
|
-
isFallback
|
1586
|
+
textEmbedded
|
1551
1587
|
) {
|
1552
1588
|
validateProperties$2(type, props);
|
1553
1589
|
("input" !== type && "textarea" !== type && "select" !== type) ||
|
@@ -2168,8 +2204,8 @@
|
|
2168
2204
|
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
2169
2205
|
return JSCompiler_inline_result$jscomp$3;
|
2170
2206
|
case "title":
|
2171
|
-
var
|
2172
|
-
|
2207
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
2208
|
+
isFallback = formatContext.tagScope & 4;
|
2173
2209
|
if (hasOwnProperty.call(props, "children")) {
|
2174
2210
|
var children$jscomp$6 = props.children,
|
2175
2211
|
child = Array.isArray(children$jscomp$6)
|
@@ -2198,7 +2234,7 @@
|
|
2198
2234
|
));
|
2199
2235
|
}
|
2200
2236
|
if (
|
2201
|
-
insertionMode === SVG_MODE ||
|
2237
|
+
formatContext.insertionMode === SVG_MODE ||
|
2202
2238
|
noscriptTagInScope ||
|
2203
2239
|
null != props.itemProp
|
2204
2240
|
)
|
@@ -2213,12 +2249,14 @@
|
|
2213
2249
|
(JSCompiler_inline_result$jscomp$4 = void 0));
|
2214
2250
|
return JSCompiler_inline_result$jscomp$4;
|
2215
2251
|
case "link":
|
2216
|
-
var
|
2252
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
2253
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
2254
|
+
rel = props.rel,
|
2217
2255
|
href = props.href,
|
2218
2256
|
precedence = props.precedence;
|
2219
2257
|
if (
|
2220
2258
|
formatContext.insertionMode === SVG_MODE ||
|
2221
|
-
|
2259
|
+
noscriptTagInScope$jscomp$0 ||
|
2222
2260
|
null != props.itemProp ||
|
2223
2261
|
"string" !== typeof rel ||
|
2224
2262
|
"string" !== typeof href ||
|
@@ -2319,12 +2357,13 @@
|
|
2319
2357
|
props
|
2320
2358
|
))
|
2321
2359
|
: (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
2322
|
-
(JSCompiler_inline_result$jscomp$5 = isFallback
|
2360
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
|
2323
2361
|
? null
|
2324
2362
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
2325
2363
|
return JSCompiler_inline_result$jscomp$5;
|
2326
2364
|
case "script":
|
2327
|
-
var
|
2365
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
2366
|
+
asyncProp = props.async;
|
2328
2367
|
if (
|
2329
2368
|
"string" !== typeof props.src ||
|
2330
2369
|
!props.src ||
|
@@ -2334,7 +2373,7 @@
|
|
2334
2373
|
props.onLoad ||
|
2335
2374
|
props.onError ||
|
2336
2375
|
formatContext.insertionMode === SVG_MODE ||
|
2337
|
-
|
2376
|
+
noscriptTagInScope$jscomp$1 ||
|
2338
2377
|
null != props.itemProp
|
2339
2378
|
)
|
2340
2379
|
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
@@ -2372,8 +2411,7 @@
|
|
2372
2411
|
}
|
2373
2412
|
return JSCompiler_inline_result$jscomp$6;
|
2374
2413
|
case "style":
|
2375
|
-
var
|
2376
|
-
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
2414
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
|
2377
2415
|
if (hasOwnProperty.call(props, "children")) {
|
2378
2416
|
var children$jscomp$7 = props.children,
|
2379
2417
|
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
@@ -2396,8 +2434,8 @@
|
|
2396
2434
|
var precedence$jscomp$0 = props.precedence,
|
2397
2435
|
href$jscomp$0 = props.href;
|
2398
2436
|
if (
|
2399
|
-
insertionMode
|
2400
|
-
noscriptTagInScope$jscomp$
|
2437
|
+
formatContext.insertionMode === SVG_MODE ||
|
2438
|
+
noscriptTagInScope$jscomp$2 ||
|
2401
2439
|
null != props.itemProp ||
|
2402
2440
|
"string" !== typeof precedence$jscomp$0 ||
|
2403
2441
|
"string" !== typeof href$jscomp$0 ||
|
@@ -2513,9 +2551,11 @@
|
|
2513
2551
|
}
|
2514
2552
|
return JSCompiler_inline_result$jscomp$7;
|
2515
2553
|
case "meta":
|
2554
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
2555
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
2516
2556
|
if (
|
2517
2557
|
formatContext.insertionMode === SVG_MODE ||
|
2518
|
-
|
2558
|
+
noscriptTagInScope$jscomp$3 ||
|
2519
2559
|
null != props.itemProp
|
2520
2560
|
)
|
2521
2561
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
@@ -2525,7 +2565,7 @@
|
|
2525
2565
|
);
|
2526
2566
|
else
|
2527
2567
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
2528
|
-
(JSCompiler_inline_result$jscomp$8 = isFallback
|
2568
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
2529
2569
|
? null
|
2530
2570
|
: "string" === typeof props.charSet
|
2531
2571
|
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
@@ -2588,17 +2628,18 @@
|
|
2588
2628
|
target$jscomp$0.push(leadingNewline);
|
2589
2629
|
return children$jscomp$10;
|
2590
2630
|
case "img":
|
2591
|
-
var
|
2631
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
2632
|
+
src = props.src,
|
2592
2633
|
srcSet = props.srcSet;
|
2593
2634
|
if (
|
2594
2635
|
!(
|
2595
2636
|
"lazy" === props.loading ||
|
2596
2637
|
(!src && !srcSet) ||
|
2597
2638
|
("string" !== typeof src && null != src) ||
|
2598
|
-
("string" !== typeof srcSet && null != srcSet)
|
2639
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
2640
|
+
"low" === props.fetchPriority ||
|
2641
|
+
pictureOrNoScriptTagInScope
|
2599
2642
|
) &&
|
2600
|
-
"low" !== props.fetchPriority &&
|
2601
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
2602
2643
|
("string" !== typeof src ||
|
2603
2644
|
":" !== src[4] ||
|
2604
2645
|
("d" !== src[0] && "D" !== src[0]) ||
|
@@ -4385,7 +4426,6 @@
|
|
4385
4426
|
null,
|
4386
4427
|
emptyTreeContext,
|
4387
4428
|
null,
|
4388
|
-
!1,
|
4389
4429
|
emptyContextObject,
|
4390
4430
|
null
|
4391
4431
|
);
|
@@ -4440,7 +4480,6 @@
|
|
4440
4480
|
context,
|
4441
4481
|
treeContext,
|
4442
4482
|
componentStack,
|
4443
|
-
isFallback,
|
4444
4483
|
legacyContext,
|
4445
4484
|
debugTask
|
4446
4485
|
) {
|
@@ -4465,8 +4504,7 @@
|
|
4465
4504
|
context: context,
|
4466
4505
|
treeContext: treeContext,
|
4467
4506
|
componentStack: componentStack,
|
4468
|
-
thenableState: thenableState
|
4469
|
-
isFallback: isFallback
|
4507
|
+
thenableState: thenableState
|
4470
4508
|
};
|
4471
4509
|
task.debugTask = debugTask;
|
4472
4510
|
abortSet.add(task);
|
@@ -4486,7 +4524,6 @@
|
|
4486
4524
|
context,
|
4487
4525
|
treeContext,
|
4488
4526
|
componentStack,
|
4489
|
-
isFallback,
|
4490
4527
|
legacyContext,
|
4491
4528
|
debugTask
|
4492
4529
|
) {
|
@@ -4512,8 +4549,7 @@
|
|
4512
4549
|
context: context,
|
4513
4550
|
treeContext: treeContext,
|
4514
4551
|
componentStack: componentStack,
|
4515
|
-
thenableState: thenableState
|
4516
|
-
isFallback: isFallback
|
4552
|
+
thenableState: thenableState
|
4517
4553
|
};
|
4518
4554
|
task.debugTask = debugTask;
|
4519
4555
|
abortSet.add(task);
|
@@ -5234,16 +5270,15 @@
|
|
5234
5270
|
task.blockedPreamble,
|
5235
5271
|
task.hoistableState,
|
5236
5272
|
task.formatContext,
|
5237
|
-
segment.lastPushedText
|
5238
|
-
task.isFallback
|
5273
|
+
segment.lastPushedText
|
5239
5274
|
);
|
5240
5275
|
segment.lastPushedText = !1;
|
5241
|
-
var
|
5276
|
+
var _prevContext2 = task.formatContext,
|
5242
5277
|
_prevKeyPath2 = task.keyPath;
|
5243
5278
|
task.keyPath = keyPath;
|
5244
5279
|
if (
|
5245
5280
|
(task.formatContext = getChildFormatContext(
|
5246
|
-
|
5281
|
+
_prevContext2,
|
5247
5282
|
type,
|
5248
5283
|
props
|
5249
5284
|
)).insertionMode === HTML_HEAD_MODE
|
@@ -5272,14 +5307,13 @@
|
|
5272
5307
|
task.context,
|
5273
5308
|
task.treeContext,
|
5274
5309
|
task.componentStack,
|
5275
|
-
task.isFallback,
|
5276
5310
|
emptyContextObject,
|
5277
5311
|
task.debugTask
|
5278
5312
|
);
|
5279
5313
|
pushComponentStack(preambleTask);
|
5280
5314
|
request.pingedTasks.push(preambleTask);
|
5281
5315
|
} else renderNode(request, task, _children, -1);
|
5282
|
-
task.formatContext =
|
5316
|
+
task.formatContext = _prevContext2;
|
5283
5317
|
task.keyPath = _prevKeyPath2;
|
5284
5318
|
a: {
|
5285
5319
|
var target = segment.chunks,
|
@@ -5305,19 +5339,19 @@
|
|
5305
5339
|
case "wbr":
|
5306
5340
|
break a;
|
5307
5341
|
case "body":
|
5308
|
-
if (
|
5342
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
|
5309
5343
|
resumableState.hasBody = !0;
|
5310
5344
|
break a;
|
5311
5345
|
}
|
5312
5346
|
break;
|
5313
5347
|
case "html":
|
5314
|
-
if (
|
5348
|
+
if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
|
5315
5349
|
resumableState.hasHtml = !0;
|
5316
5350
|
break a;
|
5317
5351
|
}
|
5318
5352
|
break;
|
5319
5353
|
case "head":
|
5320
|
-
if (
|
5354
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
|
5321
5355
|
}
|
5322
5356
|
target.push(endChunkForTag(type));
|
5323
5357
|
}
|
@@ -5369,16 +5403,21 @@
|
|
5369
5403
|
);
|
5370
5404
|
case REACT_SUSPENSE_TYPE:
|
5371
5405
|
a: if (null !== task.replay) {
|
5372
|
-
var _prevKeyPath = task.keyPath
|
5406
|
+
var _prevKeyPath = task.keyPath,
|
5407
|
+
_prevContext = task.formatContext;
|
5373
5408
|
task.keyPath = keyPath;
|
5409
|
+
task.formatContext =
|
5410
|
+
getSuspenseContentFormatContext(_prevContext);
|
5374
5411
|
var _content = props.children;
|
5375
5412
|
try {
|
5376
5413
|
renderNode(request, task, _content, -1);
|
5377
5414
|
} finally {
|
5378
|
-
task.keyPath = _prevKeyPath
|
5415
|
+
(task.keyPath = _prevKeyPath),
|
5416
|
+
(task.formatContext = _prevContext);
|
5379
5417
|
}
|
5380
5418
|
} else {
|
5381
5419
|
var prevKeyPath$jscomp$3 = task.keyPath,
|
5420
|
+
prevContext$jscomp$0 = task.formatContext,
|
5382
5421
|
parentBoundary = task.blockedBoundary,
|
5383
5422
|
parentPreamble = task.blockedPreamble,
|
5384
5423
|
parentHoistableState = task.hoistableState,
|
@@ -5441,6 +5480,8 @@
|
|
5441
5480
|
task.blockedSegment = boundarySegment;
|
5442
5481
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5443
5482
|
task.keyPath = fallbackKeyPath;
|
5483
|
+
task.formatContext =
|
5484
|
+
getSuspenseFallbackFormatContext(prevContext$jscomp$0);
|
5444
5485
|
boundarySegment.status = 6;
|
5445
5486
|
try {
|
5446
5487
|
renderNode(request, task, fallback, -1),
|
@@ -5459,7 +5500,8 @@
|
|
5459
5500
|
} finally {
|
5460
5501
|
(task.blockedSegment = parentSegment),
|
5461
5502
|
(task.blockedPreamble = parentPreamble),
|
5462
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
5503
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
5504
|
+
(task.formatContext = prevContext$jscomp$0);
|
5463
5505
|
}
|
5464
5506
|
var suspendedPrimaryTask = createRenderTask(
|
5465
5507
|
request,
|
@@ -5472,11 +5514,10 @@
|
|
5472
5514
|
newBoundary.contentState,
|
5473
5515
|
task.abortSet,
|
5474
5516
|
keyPath,
|
5475
|
-
task.formatContext,
|
5517
|
+
getSuspenseContentFormatContext(task.formatContext),
|
5476
5518
|
task.context,
|
5477
5519
|
task.treeContext,
|
5478
5520
|
task.componentStack,
|
5479
|
-
task.isFallback,
|
5480
5521
|
emptyContextObject,
|
5481
5522
|
task.debugTask
|
5482
5523
|
);
|
@@ -5488,6 +5529,8 @@
|
|
5488
5529
|
task.hoistableState = newBoundary.contentState;
|
5489
5530
|
task.blockedSegment = contentRootSegment;
|
5490
5531
|
task.keyPath = keyPath;
|
5532
|
+
task.formatContext =
|
5533
|
+
getSuspenseContentFormatContext(prevContext$jscomp$0);
|
5491
5534
|
contentRootSegment.status = 6;
|
5492
5535
|
try {
|
5493
5536
|
if (
|
@@ -5537,7 +5580,8 @@
|
|
5537
5580
|
(task.blockedPreamble = parentPreamble),
|
5538
5581
|
(task.hoistableState = parentHoistableState),
|
5539
5582
|
(task.blockedSegment = parentSegment),
|
5540
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
5583
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
5584
|
+
(task.formatContext = prevContext$jscomp$0);
|
5541
5585
|
}
|
5542
5586
|
var suspendedFallbackTask = createRenderTask(
|
5543
5587
|
request,
|
@@ -5550,11 +5594,10 @@
|
|
5550
5594
|
newBoundary.fallbackState,
|
5551
5595
|
fallbackAbortSet,
|
5552
5596
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5553
|
-
task.formatContext,
|
5597
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
5554
5598
|
task.context,
|
5555
5599
|
task.treeContext,
|
5556
5600
|
task.componentStack,
|
5557
|
-
!0,
|
5558
5601
|
emptyContextObject,
|
5559
5602
|
task.debugTask
|
5560
5603
|
);
|
@@ -5734,9 +5777,9 @@
|
|
5734
5777
|
">. The tree doesn't match so React will fallback to client rendering."
|
5735
5778
|
);
|
5736
5779
|
var childNodes = node[2];
|
5737
|
-
|
5738
|
-
|
5739
|
-
task.replay = { nodes: childNodes, slots:
|
5780
|
+
name = node[3];
|
5781
|
+
keyOrIndex = task.node;
|
5782
|
+
task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
|
5740
5783
|
try {
|
5741
5784
|
renderElement(request, task, keyPath, type, props, ref);
|
5742
5785
|
if (
|
@@ -5753,21 +5796,21 @@
|
|
5753
5796
|
null !== x &&
|
5754
5797
|
(x === SuspenseException || "function" === typeof x.then)
|
5755
5798
|
)
|
5756
|
-
throw (task.node ===
|
5799
|
+
throw (task.node === keyOrIndex && (task.replay = replay), x);
|
5757
5800
|
task.replay.pendingTasks--;
|
5758
5801
|
type = getThrownInfo(task.componentStack);
|
5759
5802
|
props = request;
|
5760
5803
|
request = task.blockedBoundary;
|
5761
5804
|
keyPath = x;
|
5762
|
-
ref =
|
5763
|
-
|
5805
|
+
ref = name;
|
5806
|
+
name = logRecoverableError(props, keyPath, type, task.debugTask);
|
5764
5807
|
abortRemainingReplayNodes(
|
5765
5808
|
props,
|
5766
5809
|
request,
|
5767
5810
|
childNodes,
|
5768
5811
|
ref,
|
5769
5812
|
keyPath,
|
5770
|
-
|
5813
|
+
name,
|
5771
5814
|
type,
|
5772
5815
|
!1
|
5773
5816
|
);
|
@@ -5782,12 +5825,13 @@
|
|
5782
5825
|
);
|
5783
5826
|
a: {
|
5784
5827
|
replay = void 0;
|
5785
|
-
|
5786
|
-
|
5787
|
-
|
5828
|
+
name = node[5];
|
5829
|
+
type = node[2];
|
5830
|
+
ref = node[3];
|
5788
5831
|
keyOrIndex = null === node[4] ? [] : node[4][2];
|
5789
5832
|
node = null === node[4] ? null : node[4][3];
|
5790
5833
|
var prevKeyPath = task.keyPath,
|
5834
|
+
prevContext = task.formatContext,
|
5791
5835
|
previousReplaySet = task.replay,
|
5792
5836
|
parentBoundary = task.blockedBoundary,
|
5793
5837
|
parentHoistableState = task.hoistableState,
|
@@ -5809,11 +5853,12 @@
|
|
5809
5853
|
null
|
5810
5854
|
);
|
5811
5855
|
props.parentFlushed = !0;
|
5812
|
-
props.rootSegmentID =
|
5856
|
+
props.rootSegmentID = name;
|
5813
5857
|
task.blockedBoundary = props;
|
5814
5858
|
task.hoistableState = props.contentState;
|
5815
5859
|
task.keyPath = keyPath;
|
5816
|
-
task.
|
5860
|
+
task.formatContext = getSuspenseContentFormatContext(prevContext);
|
5861
|
+
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
5817
5862
|
try {
|
5818
5863
|
renderNode(request, task, content, -1);
|
5819
5864
|
if (
|
@@ -5845,7 +5890,8 @@
|
|
5845
5890
|
(task.blockedBoundary = parentBoundary),
|
5846
5891
|
(task.hoistableState = parentHoistableState),
|
5847
5892
|
(task.replay = previousReplaySet),
|
5848
|
-
(task.keyPath = prevKeyPath)
|
5893
|
+
(task.keyPath = prevKeyPath),
|
5894
|
+
(task.formatContext = prevContext);
|
5849
5895
|
}
|
5850
5896
|
props = createReplayTask(
|
5851
5897
|
request,
|
@@ -5857,11 +5903,10 @@
|
|
5857
5903
|
props.fallbackState,
|
5858
5904
|
fallbackAbortSet,
|
5859
5905
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5860
|
-
task.formatContext,
|
5906
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
5861
5907
|
task.context,
|
5862
5908
|
task.treeContext,
|
5863
5909
|
task.componentStack,
|
5864
|
-
!0,
|
5865
5910
|
emptyContextObject,
|
5866
5911
|
task.debugTask
|
5867
5912
|
);
|
@@ -6246,7 +6291,6 @@
|
|
6246
6291
|
task.context,
|
6247
6292
|
task.treeContext,
|
6248
6293
|
task.componentStack,
|
6249
|
-
task.isFallback,
|
6250
6294
|
emptyContextObject,
|
6251
6295
|
task.debugTask
|
6252
6296
|
);
|
@@ -6278,7 +6322,6 @@
|
|
6278
6322
|
task.context,
|
6279
6323
|
task.treeContext,
|
6280
6324
|
task.componentStack,
|
6281
|
-
task.isFallback,
|
6282
6325
|
emptyContextObject,
|
6283
6326
|
task.debugTask
|
6284
6327
|
);
|
@@ -7621,7 +7664,7 @@
|
|
7621
7664
|
children,
|
7622
7665
|
options,
|
7623
7666
|
createRenderState(options, generateStaticMarkup),
|
7624
|
-
createFormatContext(ROOT_HTML_MODE, null, 0),
|
7667
|
+
createFormatContext(ROOT_HTML_MODE, null, 0, null),
|
7625
7668
|
Infinity,
|
7626
7669
|
onError,
|
7627
7670
|
void 0,
|
@@ -9117,5 +9160,5 @@
|
|
9117
9160
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
9118
9161
|
);
|
9119
9162
|
};
|
9120
|
-
exports.version = "19.2.0-canary-
|
9163
|
+
exports.version = "19.2.0-canary-4448b187-20250515";
|
9121
9164
|
})();
|