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
@@ -981,11 +981,17 @@
|
|
981
981
|
function createPreambleState() {
|
982
982
|
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
983
983
|
}
|
984
|
-
function createFormatContext(
|
984
|
+
function createFormatContext(
|
985
|
+
insertionMode,
|
986
|
+
selectedValue,
|
987
|
+
tagScope,
|
988
|
+
viewTransition
|
989
|
+
) {
|
985
990
|
return {
|
986
991
|
insertionMode: insertionMode,
|
987
992
|
selectedValue: selectedValue,
|
988
|
-
tagScope: tagScope
|
993
|
+
tagScope: tagScope,
|
994
|
+
viewTransition: viewTransition
|
989
995
|
};
|
990
996
|
}
|
991
997
|
function createRootFormatContext(namespaceURI) {
|
@@ -996,67 +1002,62 @@
|
|
996
1002
|
? MATHML_MODE
|
997
1003
|
: ROOT_HTML_MODE,
|
998
1004
|
null,
|
999
|
-
0
|
1005
|
+
0,
|
1006
|
+
null
|
1000
1007
|
);
|
1001
1008
|
}
|
1002
1009
|
function getChildFormatContext(parentContext, type, props) {
|
1010
|
+
var subtreeScope = parentContext.tagScope & -25;
|
1003
1011
|
switch (type) {
|
1004
1012
|
case "noscript":
|
1005
|
-
return createFormatContext(
|
1006
|
-
HTML_MODE,
|
1007
|
-
null,
|
1008
|
-
parentContext.tagScope | 1
|
1009
|
-
);
|
1013
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
|
1010
1014
|
case "select":
|
1011
1015
|
return createFormatContext(
|
1012
1016
|
HTML_MODE,
|
1013
1017
|
null != props.value ? props.value : props.defaultValue,
|
1014
|
-
|
1018
|
+
subtreeScope,
|
1019
|
+
null
|
1015
1020
|
);
|
1016
1021
|
case "svg":
|
1017
|
-
return createFormatContext(SVG_MODE, null,
|
1022
|
+
return createFormatContext(SVG_MODE, null, subtreeScope, null);
|
1018
1023
|
case "picture":
|
1019
|
-
return createFormatContext(
|
1020
|
-
HTML_MODE,
|
1021
|
-
null,
|
1022
|
-
parentContext.tagScope | 2
|
1023
|
-
);
|
1024
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
|
1024
1025
|
case "math":
|
1025
|
-
return createFormatContext(MATHML_MODE, null,
|
1026
|
+
return createFormatContext(MATHML_MODE, null, subtreeScope, null);
|
1026
1027
|
case "foreignObject":
|
1027
|
-
return createFormatContext(HTML_MODE, null,
|
1028
|
+
return createFormatContext(HTML_MODE, null, subtreeScope, null);
|
1028
1029
|
case "table":
|
1029
|
-
return createFormatContext(
|
1030
|
-
HTML_TABLE_MODE,
|
1031
|
-
null,
|
1032
|
-
parentContext.tagScope
|
1033
|
-
);
|
1030
|
+
return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
|
1034
1031
|
case "thead":
|
1035
1032
|
case "tbody":
|
1036
1033
|
case "tfoot":
|
1037
1034
|
return createFormatContext(
|
1038
1035
|
HTML_TABLE_BODY_MODE,
|
1039
1036
|
null,
|
1040
|
-
|
1037
|
+
subtreeScope,
|
1038
|
+
null
|
1041
1039
|
);
|
1042
1040
|
case "colgroup":
|
1043
1041
|
return createFormatContext(
|
1044
1042
|
HTML_COLGROUP_MODE,
|
1045
1043
|
null,
|
1046
|
-
|
1044
|
+
subtreeScope,
|
1045
|
+
null
|
1047
1046
|
);
|
1048
1047
|
case "tr":
|
1049
1048
|
return createFormatContext(
|
1050
1049
|
HTML_TABLE_ROW_MODE,
|
1051
1050
|
null,
|
1052
|
-
|
1051
|
+
subtreeScope,
|
1052
|
+
null
|
1053
1053
|
);
|
1054
1054
|
case "head":
|
1055
1055
|
if (parentContext.insertionMode < HTML_MODE)
|
1056
1056
|
return createFormatContext(
|
1057
1057
|
HTML_HEAD_MODE,
|
1058
1058
|
null,
|
1059
|
-
|
1059
|
+
subtreeScope,
|
1060
|
+
null
|
1060
1061
|
);
|
1061
1062
|
break;
|
1062
1063
|
case "html":
|
@@ -1064,13 +1065,50 @@
|
|
1064
1065
|
return createFormatContext(
|
1065
1066
|
HTML_HTML_MODE,
|
1066
1067
|
null,
|
1067
|
-
|
1068
|
+
subtreeScope,
|
1069
|
+
null
|
1068
1070
|
);
|
1069
1071
|
}
|
1070
1072
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
1071
1073
|
parentContext.insertionMode < HTML_MODE
|
1072
|
-
? createFormatContext(HTML_MODE, null,
|
1073
|
-
: parentContext
|
1074
|
+
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
1075
|
+
: parentContext.tagScope !== subtreeScope
|
1076
|
+
? createFormatContext(
|
1077
|
+
parentContext.insertionMode,
|
1078
|
+
parentContext.selectedValue,
|
1079
|
+
subtreeScope,
|
1080
|
+
null
|
1081
|
+
)
|
1082
|
+
: parentContext;
|
1083
|
+
}
|
1084
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
1085
|
+
return null === parentViewTransition
|
1086
|
+
? null
|
1087
|
+
: {
|
1088
|
+
update: parentViewTransition.update,
|
1089
|
+
enter: null,
|
1090
|
+
exit: null,
|
1091
|
+
share: parentViewTransition.update,
|
1092
|
+
name: parentViewTransition.autoName,
|
1093
|
+
autoName: parentViewTransition.autoName,
|
1094
|
+
nameIdx: 0
|
1095
|
+
};
|
1096
|
+
}
|
1097
|
+
function getSuspenseFallbackFormatContext(parentContext) {
|
1098
|
+
return createFormatContext(
|
1099
|
+
parentContext.insertionMode,
|
1100
|
+
parentContext.selectedValue,
|
1101
|
+
parentContext.tagScope | 12,
|
1102
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
1103
|
+
);
|
1104
|
+
}
|
1105
|
+
function getSuspenseContentFormatContext(parentContext) {
|
1106
|
+
return createFormatContext(
|
1107
|
+
parentContext.insertionMode,
|
1108
|
+
parentContext.selectedValue,
|
1109
|
+
parentContext.tagScope | 16,
|
1110
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
1111
|
+
);
|
1074
1112
|
}
|
1075
1113
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
1076
1114
|
if ("" === text) return textEmbedded;
|
@@ -1785,8 +1823,7 @@
|
|
1785
1823
|
preambleState,
|
1786
1824
|
hoistableState,
|
1787
1825
|
formatContext,
|
1788
|
-
textEmbedded
|
1789
|
-
isFallback
|
1826
|
+
textEmbedded
|
1790
1827
|
) {
|
1791
1828
|
validateProperties$2(type, props);
|
1792
1829
|
("input" !== type && "textarea" !== type && "select" !== type) ||
|
@@ -2407,8 +2444,8 @@
|
|
2407
2444
|
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
2408
2445
|
return JSCompiler_inline_result$jscomp$3;
|
2409
2446
|
case "title":
|
2410
|
-
var
|
2411
|
-
|
2447
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
2448
|
+
isFallback = formatContext.tagScope & 4;
|
2412
2449
|
if (hasOwnProperty.call(props, "children")) {
|
2413
2450
|
var children$jscomp$6 = props.children,
|
2414
2451
|
child = Array.isArray(children$jscomp$6)
|
@@ -2437,7 +2474,7 @@
|
|
2437
2474
|
));
|
2438
2475
|
}
|
2439
2476
|
if (
|
2440
|
-
insertionMode === SVG_MODE ||
|
2477
|
+
formatContext.insertionMode === SVG_MODE ||
|
2441
2478
|
noscriptTagInScope ||
|
2442
2479
|
null != props.itemProp
|
2443
2480
|
)
|
@@ -2452,12 +2489,14 @@
|
|
2452
2489
|
(JSCompiler_inline_result$jscomp$4 = void 0));
|
2453
2490
|
return JSCompiler_inline_result$jscomp$4;
|
2454
2491
|
case "link":
|
2455
|
-
var
|
2492
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
2493
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
2494
|
+
rel = props.rel,
|
2456
2495
|
href = props.href,
|
2457
2496
|
precedence = props.precedence;
|
2458
2497
|
if (
|
2459
2498
|
formatContext.insertionMode === SVG_MODE ||
|
2460
|
-
|
2499
|
+
noscriptTagInScope$jscomp$0 ||
|
2461
2500
|
null != props.itemProp ||
|
2462
2501
|
"string" !== typeof rel ||
|
2463
2502
|
"string" !== typeof href ||
|
@@ -2558,12 +2597,13 @@
|
|
2558
2597
|
props
|
2559
2598
|
))
|
2560
2599
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
2561
|
-
(JSCompiler_inline_result$jscomp$5 = isFallback
|
2600
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
|
2562
2601
|
? null
|
2563
2602
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
2564
2603
|
return JSCompiler_inline_result$jscomp$5;
|
2565
2604
|
case "script":
|
2566
|
-
var
|
2605
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
2606
|
+
asyncProp = props.async;
|
2567
2607
|
if (
|
2568
2608
|
"string" !== typeof props.src ||
|
2569
2609
|
!props.src ||
|
@@ -2573,7 +2613,7 @@
|
|
2573
2613
|
props.onLoad ||
|
2574
2614
|
props.onError ||
|
2575
2615
|
formatContext.insertionMode === SVG_MODE ||
|
2576
|
-
|
2616
|
+
noscriptTagInScope$jscomp$1 ||
|
2577
2617
|
null != props.itemProp
|
2578
2618
|
)
|
2579
2619
|
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
@@ -2611,8 +2651,7 @@
|
|
2611
2651
|
}
|
2612
2652
|
return JSCompiler_inline_result$jscomp$6;
|
2613
2653
|
case "style":
|
2614
|
-
var
|
2615
|
-
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
2654
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
|
2616
2655
|
if (hasOwnProperty.call(props, "children")) {
|
2617
2656
|
var children$jscomp$7 = props.children,
|
2618
2657
|
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
@@ -2635,8 +2674,8 @@
|
|
2635
2674
|
var precedence$jscomp$0 = props.precedence,
|
2636
2675
|
href$jscomp$0 = props.href;
|
2637
2676
|
if (
|
2638
|
-
insertionMode
|
2639
|
-
noscriptTagInScope$jscomp$
|
2677
|
+
formatContext.insertionMode === SVG_MODE ||
|
2678
|
+
noscriptTagInScope$jscomp$2 ||
|
2640
2679
|
null != props.itemProp ||
|
2641
2680
|
"string" !== typeof precedence$jscomp$0 ||
|
2642
2681
|
"string" !== typeof href$jscomp$0 ||
|
@@ -2752,9 +2791,11 @@
|
|
2752
2791
|
}
|
2753
2792
|
return JSCompiler_inline_result$jscomp$7;
|
2754
2793
|
case "meta":
|
2794
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
2795
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
2755
2796
|
if (
|
2756
2797
|
formatContext.insertionMode === SVG_MODE ||
|
2757
|
-
|
2798
|
+
noscriptTagInScope$jscomp$3 ||
|
2758
2799
|
null != props.itemProp
|
2759
2800
|
)
|
2760
2801
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
@@ -2764,7 +2805,7 @@
|
|
2764
2805
|
);
|
2765
2806
|
else
|
2766
2807
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
2767
|
-
(JSCompiler_inline_result$jscomp$8 = isFallback
|
2808
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
2768
2809
|
? null
|
2769
2810
|
: "string" === typeof props.charSet
|
2770
2811
|
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
@@ -2827,17 +2868,18 @@
|
|
2827
2868
|
target$jscomp$0.push(leadingNewline);
|
2828
2869
|
return children$jscomp$10;
|
2829
2870
|
case "img":
|
2830
|
-
var
|
2871
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
2872
|
+
src = props.src,
|
2831
2873
|
srcSet = props.srcSet;
|
2832
2874
|
if (
|
2833
2875
|
!(
|
2834
2876
|
"lazy" === props.loading ||
|
2835
2877
|
(!src && !srcSet) ||
|
2836
2878
|
("string" !== typeof src && null != src) ||
|
2837
|
-
("string" !== typeof srcSet && null != srcSet)
|
2879
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
2880
|
+
"low" === props.fetchPriority ||
|
2881
|
+
pictureOrNoScriptTagInScope
|
2838
2882
|
) &&
|
2839
|
-
"low" !== props.fetchPriority &&
|
2840
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
2841
2883
|
("string" !== typeof src ||
|
2842
2884
|
":" !== src[4] ||
|
2843
2885
|
("d" !== src[0] && "D" !== src[0]) ||
|
@@ -4448,7 +4490,6 @@
|
|
4448
4490
|
null,
|
4449
4491
|
emptyTreeContext,
|
4450
4492
|
null,
|
4451
|
-
!1,
|
4452
4493
|
emptyContextObject,
|
4453
4494
|
null
|
4454
4495
|
);
|
@@ -4548,7 +4589,6 @@
|
|
4548
4589
|
context,
|
4549
4590
|
treeContext,
|
4550
4591
|
componentStack,
|
4551
|
-
isFallback,
|
4552
4592
|
legacyContext,
|
4553
4593
|
debugTask
|
4554
4594
|
) {
|
@@ -4573,8 +4613,7 @@
|
|
4573
4613
|
context: context,
|
4574
4614
|
treeContext: treeContext,
|
4575
4615
|
componentStack: componentStack,
|
4576
|
-
thenableState: thenableState
|
4577
|
-
isFallback: isFallback
|
4616
|
+
thenableState: thenableState
|
4578
4617
|
};
|
4579
4618
|
task.debugTask = debugTask;
|
4580
4619
|
abortSet.add(task);
|
@@ -4594,7 +4633,6 @@
|
|
4594
4633
|
context,
|
4595
4634
|
treeContext,
|
4596
4635
|
componentStack,
|
4597
|
-
isFallback,
|
4598
4636
|
legacyContext,
|
4599
4637
|
debugTask
|
4600
4638
|
) {
|
@@ -4620,8 +4658,7 @@
|
|
4620
4658
|
context: context,
|
4621
4659
|
treeContext: treeContext,
|
4622
4660
|
componentStack: componentStack,
|
4623
|
-
thenableState: thenableState
|
4624
|
-
isFallback: isFallback
|
4661
|
+
thenableState: thenableState
|
4625
4662
|
};
|
4626
4663
|
task.debugTask = debugTask;
|
4627
4664
|
abortSet.add(task);
|
@@ -5342,16 +5379,15 @@
|
|
5342
5379
|
task.blockedPreamble,
|
5343
5380
|
task.hoistableState,
|
5344
5381
|
task.formatContext,
|
5345
|
-
segment.lastPushedText
|
5346
|
-
task.isFallback
|
5382
|
+
segment.lastPushedText
|
5347
5383
|
);
|
5348
5384
|
segment.lastPushedText = !1;
|
5349
|
-
var
|
5385
|
+
var _prevContext2 = task.formatContext,
|
5350
5386
|
_prevKeyPath2 = task.keyPath;
|
5351
5387
|
task.keyPath = keyPath;
|
5352
5388
|
if (
|
5353
5389
|
(task.formatContext = getChildFormatContext(
|
5354
|
-
|
5390
|
+
_prevContext2,
|
5355
5391
|
type,
|
5356
5392
|
props
|
5357
5393
|
)).insertionMode === HTML_HEAD_MODE
|
@@ -5380,14 +5416,13 @@
|
|
5380
5416
|
task.context,
|
5381
5417
|
task.treeContext,
|
5382
5418
|
task.componentStack,
|
5383
|
-
task.isFallback,
|
5384
5419
|
emptyContextObject,
|
5385
5420
|
task.debugTask
|
5386
5421
|
);
|
5387
5422
|
pushComponentStack(preambleTask);
|
5388
5423
|
request.pingedTasks.push(preambleTask);
|
5389
5424
|
} else renderNode(request, task, _children, -1);
|
5390
|
-
task.formatContext =
|
5425
|
+
task.formatContext = _prevContext2;
|
5391
5426
|
task.keyPath = _prevKeyPath2;
|
5392
5427
|
a: {
|
5393
5428
|
var target = segment.chunks,
|
@@ -5413,19 +5448,19 @@
|
|
5413
5448
|
case "wbr":
|
5414
5449
|
break a;
|
5415
5450
|
case "body":
|
5416
|
-
if (
|
5451
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
|
5417
5452
|
resumableState.hasBody = !0;
|
5418
5453
|
break a;
|
5419
5454
|
}
|
5420
5455
|
break;
|
5421
5456
|
case "html":
|
5422
|
-
if (
|
5457
|
+
if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
|
5423
5458
|
resumableState.hasHtml = !0;
|
5424
5459
|
break a;
|
5425
5460
|
}
|
5426
5461
|
break;
|
5427
5462
|
case "head":
|
5428
|
-
if (
|
5463
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
|
5429
5464
|
}
|
5430
5465
|
target.push(endChunkForTag(type));
|
5431
5466
|
}
|
@@ -5475,16 +5510,21 @@
|
|
5475
5510
|
);
|
5476
5511
|
case REACT_SUSPENSE_TYPE:
|
5477
5512
|
a: if (null !== task.replay) {
|
5478
|
-
var _prevKeyPath = task.keyPath
|
5513
|
+
var _prevKeyPath = task.keyPath,
|
5514
|
+
_prevContext = task.formatContext;
|
5479
5515
|
task.keyPath = keyPath;
|
5516
|
+
task.formatContext =
|
5517
|
+
getSuspenseContentFormatContext(_prevContext);
|
5480
5518
|
var _content = props.children;
|
5481
5519
|
try {
|
5482
5520
|
renderNode(request, task, _content, -1);
|
5483
5521
|
} finally {
|
5484
|
-
task.keyPath = _prevKeyPath
|
5522
|
+
(task.keyPath = _prevKeyPath),
|
5523
|
+
(task.formatContext = _prevContext);
|
5485
5524
|
}
|
5486
5525
|
} else {
|
5487
5526
|
var prevKeyPath$jscomp$3 = task.keyPath,
|
5527
|
+
prevContext$jscomp$0 = task.formatContext,
|
5488
5528
|
parentBoundary = task.blockedBoundary,
|
5489
5529
|
parentPreamble = task.blockedPreamble,
|
5490
5530
|
parentHoistableState = task.hoistableState,
|
@@ -5547,6 +5587,8 @@
|
|
5547
5587
|
task.blockedSegment = boundarySegment;
|
5548
5588
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5549
5589
|
task.keyPath = fallbackKeyPath;
|
5590
|
+
task.formatContext =
|
5591
|
+
getSuspenseFallbackFormatContext(prevContext$jscomp$0);
|
5550
5592
|
boundarySegment.status = 6;
|
5551
5593
|
try {
|
5552
5594
|
renderNode(request, task, fallback, -1),
|
@@ -5563,7 +5605,8 @@
|
|
5563
5605
|
} finally {
|
5564
5606
|
(task.blockedSegment = parentSegment),
|
5565
5607
|
(task.blockedPreamble = parentPreamble),
|
5566
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
5608
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
5609
|
+
(task.formatContext = prevContext$jscomp$0);
|
5567
5610
|
}
|
5568
5611
|
var suspendedPrimaryTask = createRenderTask(
|
5569
5612
|
request,
|
@@ -5576,11 +5619,10 @@
|
|
5576
5619
|
newBoundary.contentState,
|
5577
5620
|
task.abortSet,
|
5578
5621
|
keyPath,
|
5579
|
-
task.formatContext,
|
5622
|
+
getSuspenseContentFormatContext(task.formatContext),
|
5580
5623
|
task.context,
|
5581
5624
|
task.treeContext,
|
5582
5625
|
task.componentStack,
|
5583
|
-
task.isFallback,
|
5584
5626
|
emptyContextObject,
|
5585
5627
|
task.debugTask
|
5586
5628
|
);
|
@@ -5592,6 +5634,8 @@
|
|
5592
5634
|
task.hoistableState = newBoundary.contentState;
|
5593
5635
|
task.blockedSegment = contentRootSegment;
|
5594
5636
|
task.keyPath = keyPath;
|
5637
|
+
task.formatContext =
|
5638
|
+
getSuspenseContentFormatContext(prevContext$jscomp$0);
|
5595
5639
|
contentRootSegment.status = 6;
|
5596
5640
|
try {
|
5597
5641
|
if (
|
@@ -5639,7 +5683,8 @@
|
|
5639
5683
|
(task.blockedPreamble = parentPreamble),
|
5640
5684
|
(task.hoistableState = parentHoistableState),
|
5641
5685
|
(task.blockedSegment = parentSegment),
|
5642
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
5686
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
5687
|
+
(task.formatContext = prevContext$jscomp$0);
|
5643
5688
|
}
|
5644
5689
|
var suspendedFallbackTask = createRenderTask(
|
5645
5690
|
request,
|
@@ -5652,11 +5697,10 @@
|
|
5652
5697
|
newBoundary.fallbackState,
|
5653
5698
|
fallbackAbortSet,
|
5654
5699
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5655
|
-
task.formatContext,
|
5700
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
5656
5701
|
task.context,
|
5657
5702
|
task.treeContext,
|
5658
5703
|
task.componentStack,
|
5659
|
-
!0,
|
5660
5704
|
emptyContextObject,
|
5661
5705
|
task.debugTask
|
5662
5706
|
);
|
@@ -5837,9 +5881,9 @@
|
|
5837
5881
|
">. The tree doesn't match so React will fallback to client rendering."
|
5838
5882
|
);
|
5839
5883
|
var childNodes = node[2];
|
5840
|
-
|
5841
|
-
|
5842
|
-
task.replay = { nodes: childNodes, slots:
|
5884
|
+
name = node[3];
|
5885
|
+
keyOrIndex = task.node;
|
5886
|
+
task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
|
5843
5887
|
try {
|
5844
5888
|
renderElement(request, task, keyPath, type, props, ref);
|
5845
5889
|
if (
|
@@ -5856,21 +5900,21 @@
|
|
5856
5900
|
null !== x &&
|
5857
5901
|
(x === SuspenseException || "function" === typeof x.then)
|
5858
5902
|
)
|
5859
|
-
throw (task.node ===
|
5903
|
+
throw (task.node === keyOrIndex && (task.replay = replay), x);
|
5860
5904
|
task.replay.pendingTasks--;
|
5861
5905
|
type = getThrownInfo(task.componentStack);
|
5862
5906
|
props = request;
|
5863
5907
|
request = task.blockedBoundary;
|
5864
5908
|
keyPath = x;
|
5865
|
-
ref =
|
5866
|
-
|
5909
|
+
ref = name;
|
5910
|
+
name = logRecoverableError(props, keyPath, type, task.debugTask);
|
5867
5911
|
abortRemainingReplayNodes(
|
5868
5912
|
props,
|
5869
5913
|
request,
|
5870
5914
|
childNodes,
|
5871
5915
|
ref,
|
5872
5916
|
keyPath,
|
5873
|
-
|
5917
|
+
name,
|
5874
5918
|
type,
|
5875
5919
|
!1
|
5876
5920
|
);
|
@@ -5885,12 +5929,13 @@
|
|
5885
5929
|
);
|
5886
5930
|
a: {
|
5887
5931
|
replay = void 0;
|
5888
|
-
|
5889
|
-
|
5890
|
-
|
5932
|
+
name = node[5];
|
5933
|
+
type = node[2];
|
5934
|
+
ref = node[3];
|
5891
5935
|
keyOrIndex = null === node[4] ? [] : node[4][2];
|
5892
5936
|
node = null === node[4] ? null : node[4][3];
|
5893
5937
|
var prevKeyPath = task.keyPath,
|
5938
|
+
prevContext = task.formatContext,
|
5894
5939
|
previousReplaySet = task.replay,
|
5895
5940
|
parentBoundary = task.blockedBoundary,
|
5896
5941
|
parentHoistableState = task.hoistableState,
|
@@ -5912,11 +5957,12 @@
|
|
5912
5957
|
null
|
5913
5958
|
);
|
5914
5959
|
props.parentFlushed = !0;
|
5915
|
-
props.rootSegmentID =
|
5960
|
+
props.rootSegmentID = name;
|
5916
5961
|
task.blockedBoundary = props;
|
5917
5962
|
task.hoistableState = props.contentState;
|
5918
5963
|
task.keyPath = keyPath;
|
5919
|
-
task.
|
5964
|
+
task.formatContext = getSuspenseContentFormatContext(prevContext);
|
5965
|
+
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
5920
5966
|
try {
|
5921
5967
|
renderNode(request, task, content, -1);
|
5922
5968
|
if (
|
@@ -5948,7 +5994,8 @@
|
|
5948
5994
|
(task.blockedBoundary = parentBoundary),
|
5949
5995
|
(task.hoistableState = parentHoistableState),
|
5950
5996
|
(task.replay = previousReplaySet),
|
5951
|
-
(task.keyPath = prevKeyPath)
|
5997
|
+
(task.keyPath = prevKeyPath),
|
5998
|
+
(task.formatContext = prevContext);
|
5952
5999
|
}
|
5953
6000
|
props = createReplayTask(
|
5954
6001
|
request,
|
@@ -5960,11 +6007,10 @@
|
|
5960
6007
|
props.fallbackState,
|
5961
6008
|
fallbackAbortSet,
|
5962
6009
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5963
|
-
task.formatContext,
|
6010
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
5964
6011
|
task.context,
|
5965
6012
|
task.treeContext,
|
5966
6013
|
task.componentStack,
|
5967
|
-
!0,
|
5968
6014
|
emptyContextObject,
|
5969
6015
|
task.debugTask
|
5970
6016
|
);
|
@@ -6349,7 +6395,6 @@
|
|
6349
6395
|
task.context,
|
6350
6396
|
task.treeContext,
|
6351
6397
|
task.componentStack,
|
6352
|
-
task.isFallback,
|
6353
6398
|
emptyContextObject,
|
6354
6399
|
task.debugTask
|
6355
6400
|
);
|
@@ -6381,7 +6426,6 @@
|
|
6381
6426
|
task.context,
|
6382
6427
|
task.treeContext,
|
6383
6428
|
task.componentStack,
|
6384
|
-
task.isFallback,
|
6385
6429
|
emptyContextObject,
|
6386
6430
|
task.debugTask
|
6387
6431
|
);
|
@@ -7743,11 +7787,11 @@
|
|
7743
7787
|
}
|
7744
7788
|
function ensureCorrectIsomorphicReactVersion() {
|
7745
7789
|
var isomorphicReactPackageVersion = React.version;
|
7746
|
-
if ("19.2.0-canary-
|
7790
|
+
if ("19.2.0-canary-4448b187-20250515" !== isomorphicReactPackageVersion)
|
7747
7791
|
throw Error(
|
7748
7792
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7749
7793
|
(isomorphicReactPackageVersion +
|
7750
|
-
"\n - react-dom: 19.2.0-canary-
|
7794
|
+
"\n - react-dom: 19.2.0-canary-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
7751
7795
|
);
|
7752
7796
|
}
|
7753
7797
|
function createDrainHandler(destination, request) {
|
@@ -9428,5 +9472,5 @@
|
|
9428
9472
|
}
|
9429
9473
|
};
|
9430
9474
|
};
|
9431
|
-
exports.version = "19.2.0-canary-
|
9475
|
+
exports.version = "19.2.0-canary-4448b187-20250515";
|
9432
9476
|
})();
|