react-dom 19.2.0-canary-462d08f9-20250517 → 19.2.0-canary-23884812-20250520
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 +73 -56
- package/cjs/react-dom-client.production.js +33 -32
- package/cjs/react-dom-profiling.development.js +73 -56
- package/cjs/react-dom-profiling.profiling.js +33 -32
- package/cjs/react-dom-server-legacy.browser.development.js +593 -251
- package/cjs/react-dom-server-legacy.browser.production.js +469 -182
- package/cjs/react-dom-server-legacy.node.development.js +593 -251
- package/cjs/react-dom-server-legacy.node.production.js +469 -182
- package/cjs/react-dom-server.browser.development.js +579 -220
- package/cjs/react-dom-server.browser.production.js +441 -133
- package/cjs/react-dom-server.bun.development.js +587 -224
- package/cjs/react-dom-server.bun.production.js +465 -142
- package/cjs/react-dom-server.edge.development.js +579 -220
- package/cjs/react-dom-server.edge.production.js +441 -133
- package/cjs/react-dom-server.node.development.js +579 -217
- package/cjs/react-dom-server.node.production.js +441 -133
- 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
@@ -29,8 +29,15 @@ var React = require("react"),
|
|
29
29
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
30
30
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
31
31
|
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
32
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator
|
33
|
-
|
32
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
33
|
+
function getIteratorFn(maybeIterable) {
|
34
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
35
|
+
maybeIterable =
|
36
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
37
|
+
maybeIterable["@@iterator"];
|
38
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
39
|
+
}
|
40
|
+
var isArrayImpl = Array.isArray,
|
34
41
|
scheduleMicrotask = queueMicrotask;
|
35
42
|
function flushBuffered(destination) {
|
36
43
|
"function" === typeof destination.flush && destination.flush();
|
@@ -561,6 +568,9 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
561
568
|
target.push(escapeTextForBrowser(text));
|
562
569
|
return !0;
|
563
570
|
}
|
571
|
+
function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
|
572
|
+
lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e");
|
573
|
+
}
|
564
574
|
var styleNameCache = new Map();
|
565
575
|
function pushStyleAttribute(target, style) {
|
566
576
|
if ("object" !== typeof style)
|
@@ -2866,6 +2876,10 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
2866
2876
|
function hoistStylesheetDependency(stylesheet) {
|
2867
2877
|
this.stylesheets.add(stylesheet);
|
2868
2878
|
}
|
2879
|
+
function hoistHoistables(parentState, childState) {
|
2880
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
2881
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
2882
|
+
}
|
2869
2883
|
var bind = Function.prototype.bind,
|
2870
2884
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
2871
2885
|
function getComponentNameFromType(type) {
|
@@ -3718,6 +3732,7 @@ function createRequest(
|
|
3718
3732
|
rootFormatContext,
|
3719
3733
|
null,
|
3720
3734
|
emptyTreeContext,
|
3735
|
+
null,
|
3721
3736
|
null
|
3722
3737
|
);
|
3723
3738
|
pushComponentStack(children);
|
@@ -3739,15 +3754,17 @@ function pingTask(request, task) {
|
|
3739
3754
|
}
|
3740
3755
|
function createSuspenseBoundary(
|
3741
3756
|
request,
|
3757
|
+
row,
|
3742
3758
|
fallbackAbortableTasks,
|
3743
3759
|
contentPreamble,
|
3744
3760
|
fallbackPreamble
|
3745
3761
|
) {
|
3746
|
-
|
3762
|
+
fallbackAbortableTasks = {
|
3747
3763
|
status: 0,
|
3748
3764
|
rootSegmentID: -1,
|
3749
3765
|
parentFlushed: !1,
|
3750
3766
|
pendingTasks: 0,
|
3767
|
+
row: row,
|
3751
3768
|
completedSegments: [],
|
3752
3769
|
byteSize: 0,
|
3753
3770
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
@@ -3759,6 +3776,17 @@ function createSuspenseBoundary(
|
|
3759
3776
|
trackedContentKeyPath: null,
|
3760
3777
|
trackedFallbackNode: null
|
3761
3778
|
};
|
3779
|
+
null !== row &&
|
3780
|
+
(row.pendingTasks++,
|
3781
|
+
(contentPreamble = row.boundaries),
|
3782
|
+
null !== contentPreamble &&
|
3783
|
+
(request.allPendingTasks++,
|
3784
|
+
fallbackAbortableTasks.pendingTasks++,
|
3785
|
+
contentPreamble.push(fallbackAbortableTasks)),
|
3786
|
+
(request = row.inheritedHoistables),
|
3787
|
+
null !== request &&
|
3788
|
+
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
3789
|
+
return fallbackAbortableTasks;
|
3762
3790
|
}
|
3763
3791
|
function createRenderTask(
|
3764
3792
|
request,
|
@@ -3774,12 +3802,14 @@ function createRenderTask(
|
|
3774
3802
|
formatContext,
|
3775
3803
|
context,
|
3776
3804
|
treeContext,
|
3805
|
+
row,
|
3777
3806
|
componentStack
|
3778
3807
|
) {
|
3779
3808
|
request.allPendingTasks++;
|
3780
3809
|
null === blockedBoundary
|
3781
3810
|
? request.pendingRootTasks++
|
3782
3811
|
: blockedBoundary.pendingTasks++;
|
3812
|
+
null !== row && row.pendingTasks++;
|
3783
3813
|
var task = {
|
3784
3814
|
replay: null,
|
3785
3815
|
node: node,
|
@@ -3796,6 +3826,7 @@ function createRenderTask(
|
|
3796
3826
|
formatContext: formatContext,
|
3797
3827
|
context: context,
|
3798
3828
|
treeContext: treeContext,
|
3829
|
+
row: row,
|
3799
3830
|
componentStack: componentStack,
|
3800
3831
|
thenableState: thenableState
|
3801
3832
|
};
|
@@ -3815,12 +3846,14 @@ function createReplayTask(
|
|
3815
3846
|
formatContext,
|
3816
3847
|
context,
|
3817
3848
|
treeContext,
|
3849
|
+
row,
|
3818
3850
|
componentStack
|
3819
3851
|
) {
|
3820
3852
|
request.allPendingTasks++;
|
3821
3853
|
null === blockedBoundary
|
3822
3854
|
? request.pendingRootTasks++
|
3823
3855
|
: blockedBoundary.pendingTasks++;
|
3856
|
+
null !== row && row.pendingTasks++;
|
3824
3857
|
replay.pendingTasks++;
|
3825
3858
|
var task = {
|
3826
3859
|
replay: replay,
|
@@ -3838,6 +3871,7 @@ function createReplayTask(
|
|
3838
3871
|
formatContext: formatContext,
|
3839
3872
|
context: context,
|
3840
3873
|
treeContext: treeContext,
|
3874
|
+
row: row,
|
3841
3875
|
componentStack: componentStack,
|
3842
3876
|
thenableState: thenableState
|
3843
3877
|
};
|
@@ -3915,6 +3949,165 @@ function fatalError(request, error) {
|
|
3915
3949
|
? ((request.status = 14), closeWithError(request.destination, error))
|
3916
3950
|
: ((request.status = 13), (request.fatalError = error));
|
3917
3951
|
}
|
3952
|
+
function finishSuspenseListRow(request, row) {
|
3953
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
3954
|
+
}
|
3955
|
+
function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
|
3956
|
+
for (; null !== unblockedRow; ) {
|
3957
|
+
null !== inheritedHoistables &&
|
3958
|
+
(hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
|
3959
|
+
(unblockedRow.inheritedHoistables = inheritedHoistables));
|
3960
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
3961
|
+
if (null !== unblockedBoundaries) {
|
3962
|
+
unblockedRow.boundaries = null;
|
3963
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
3964
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
3965
|
+
null !== inheritedHoistables &&
|
3966
|
+
hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
|
3967
|
+
finishedTask(request, unblockedBoundary, null, null);
|
3968
|
+
}
|
3969
|
+
}
|
3970
|
+
unblockedRow.pendingTasks--;
|
3971
|
+
if (0 < unblockedRow.pendingTasks) break;
|
3972
|
+
inheritedHoistables = unblockedRow.hoistables;
|
3973
|
+
unblockedRow = unblockedRow.next;
|
3974
|
+
}
|
3975
|
+
}
|
3976
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
3977
|
+
var boundaries = togetherRow.boundaries;
|
3978
|
+
if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
|
3979
|
+
for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
|
3980
|
+
var rowBoundary = boundaries[i];
|
3981
|
+
if (
|
3982
|
+
1 !== rowBoundary.pendingTasks ||
|
3983
|
+
rowBoundary.parentFlushed ||
|
3984
|
+
500 < rowBoundary.byteSize
|
3985
|
+
) {
|
3986
|
+
allCompleteAndInlinable = !1;
|
3987
|
+
break;
|
3988
|
+
}
|
3989
|
+
}
|
3990
|
+
allCompleteAndInlinable &&
|
3991
|
+
unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
3992
|
+
}
|
3993
|
+
}
|
3994
|
+
function createSuspenseListRow(previousRow) {
|
3995
|
+
var newRow = {
|
3996
|
+
pendingTasks: 1,
|
3997
|
+
boundaries: null,
|
3998
|
+
hoistables: createHoistableState(),
|
3999
|
+
inheritedHoistables: null,
|
4000
|
+
together: !1,
|
4001
|
+
next: null
|
4002
|
+
};
|
4003
|
+
null !== previousRow &&
|
4004
|
+
0 < previousRow.pendingTasks &&
|
4005
|
+
(newRow.pendingTasks++,
|
4006
|
+
(newRow.boundaries = []),
|
4007
|
+
(previousRow.next = newRow));
|
4008
|
+
return newRow;
|
4009
|
+
}
|
4010
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
4011
|
+
var prevKeyPath = task.keyPath,
|
4012
|
+
prevTreeContext = task.treeContext,
|
4013
|
+
prevRow = task.row;
|
4014
|
+
task.keyPath = keyPath;
|
4015
|
+
keyPath = rows.length;
|
4016
|
+
var previousSuspenseListRow = null;
|
4017
|
+
if (null !== task.replay) {
|
4018
|
+
var resumeSlots = task.replay.slots;
|
4019
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
4020
|
+
for (var n = 0; n < keyPath; n++) {
|
4021
|
+
var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
|
4022
|
+
node = rows[i];
|
4023
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
4024
|
+
previousSuspenseListRow
|
4025
|
+
);
|
4026
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
4027
|
+
var resumeSegmentID = resumeSlots[i];
|
4028
|
+
"number" === typeof resumeSegmentID
|
4029
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
4030
|
+
delete resumeSlots[i])
|
4031
|
+
: renderNode(request, task, node, i);
|
4032
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
4033
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
4034
|
+
}
|
4035
|
+
else
|
4036
|
+
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
4037
|
+
(n =
|
4038
|
+
"backwards" !== revealOrder
|
4039
|
+
? resumeSlots
|
4040
|
+
: keyPath - 1 - resumeSlots),
|
4041
|
+
(i = rows[n]),
|
4042
|
+
(task.row = previousSuspenseListRow =
|
4043
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
4044
|
+
(task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
|
4045
|
+
renderNode(request, task, i, n),
|
4046
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
4047
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
4048
|
+
} else if ("backwards" !== revealOrder)
|
4049
|
+
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
4050
|
+
(resumeSlots = rows[revealOrder]),
|
4051
|
+
(task.row = previousSuspenseListRow =
|
4052
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
4053
|
+
(task.treeContext = pushTreeContext(
|
4054
|
+
prevTreeContext,
|
4055
|
+
keyPath,
|
4056
|
+
revealOrder
|
4057
|
+
)),
|
4058
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
4059
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
4060
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
4061
|
+
else {
|
4062
|
+
revealOrder = task.blockedSegment;
|
4063
|
+
resumeSlots = revealOrder.children.length;
|
4064
|
+
n = revealOrder.chunks.length;
|
4065
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
4066
|
+
node = rows[i];
|
4067
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
4068
|
+
previousSuspenseListRow
|
4069
|
+
);
|
4070
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
4071
|
+
resumeSegmentID = createPendingSegment(
|
4072
|
+
request,
|
4073
|
+
n,
|
4074
|
+
null,
|
4075
|
+
task.formatContext,
|
4076
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
4077
|
+
!0
|
4078
|
+
);
|
4079
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
4080
|
+
task.blockedSegment = resumeSegmentID;
|
4081
|
+
try {
|
4082
|
+
renderNode(request, task, node, i),
|
4083
|
+
pushSegmentFinale(
|
4084
|
+
resumeSegmentID.chunks,
|
4085
|
+
request.renderState,
|
4086
|
+
resumeSegmentID.lastPushedText,
|
4087
|
+
resumeSegmentID.textEmbedded
|
4088
|
+
),
|
4089
|
+
(resumeSegmentID.status = 1),
|
4090
|
+
finishedSegment(request, task.blockedBoundary, resumeSegmentID),
|
4091
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
4092
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
4093
|
+
} catch (thrownValue) {
|
4094
|
+
throw (
|
4095
|
+
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
4096
|
+
thrownValue)
|
4097
|
+
);
|
4098
|
+
}
|
4099
|
+
}
|
4100
|
+
task.blockedSegment = revealOrder;
|
4101
|
+
revealOrder.lastPushedText = !1;
|
4102
|
+
}
|
4103
|
+
null !== prevRow &&
|
4104
|
+
null !== previousSuspenseListRow &&
|
4105
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
4106
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
4107
|
+
task.treeContext = prevTreeContext;
|
4108
|
+
task.row = prevRow;
|
4109
|
+
task.keyPath = prevKeyPath;
|
4110
|
+
}
|
3918
4111
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
3919
4112
|
var prevThenableState = task.thenableState;
|
3920
4113
|
task.thenableState = null;
|
@@ -3982,9 +4175,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
3982
4175
|
var defaultProps = type.defaultProps;
|
3983
4176
|
if (defaultProps) {
|
3984
4177
|
newProps === props && (newProps = assign({}, newProps, props));
|
3985
|
-
for (var propName$
|
3986
|
-
void 0 === newProps[propName$
|
3987
|
-
(newProps[propName$
|
4178
|
+
for (var propName$43 in defaultProps)
|
4179
|
+
void 0 === newProps[propName$43] &&
|
4180
|
+
(newProps[propName$43] = defaultProps[propName$43]);
|
3988
4181
|
}
|
3989
4182
|
props = newProps;
|
3990
4183
|
newProps = emptyContextObject;
|
@@ -4044,16 +4237,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4044
4237
|
defaultProps = ref ? type[0] : newProps.state;
|
4045
4238
|
initialState = !0;
|
4046
4239
|
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
4047
|
-
(propName$
|
4048
|
-
(propName$
|
4049
|
-
"function" === typeof propName$
|
4050
|
-
? propName$
|
4051
|
-
: propName$
|
4052
|
-
null != propName$
|
4240
|
+
(propName$43 = type[ref]),
|
4241
|
+
(propName$43 =
|
4242
|
+
"function" === typeof propName$43
|
4243
|
+
? propName$43.call(newProps, defaultProps, props, void 0)
|
4244
|
+
: propName$43),
|
4245
|
+
null != propName$43 &&
|
4053
4246
|
(initialState
|
4054
4247
|
? ((initialState = !1),
|
4055
|
-
(defaultProps = assign({}, defaultProps, propName$
|
4056
|
-
: assign(defaultProps, propName$
|
4248
|
+
(defaultProps = assign({}, defaultProps, propName$43)))
|
4249
|
+
: assign(defaultProps, propName$43));
|
4057
4250
|
newProps.state = defaultProps;
|
4058
4251
|
}
|
4059
4252
|
else defaultProps.queue = null;
|
@@ -4128,6 +4321,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4128
4321
|
task.formatContext,
|
4129
4322
|
task.context,
|
4130
4323
|
task.treeContext,
|
4324
|
+
task.row,
|
4131
4325
|
task.componentStack
|
4132
4326
|
)),
|
4133
4327
|
pushComponentStack(keyPath),
|
@@ -4207,10 +4401,45 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4207
4401
|
(type.lastPushedText = !1));
|
4208
4402
|
return;
|
4209
4403
|
case REACT_SUSPENSE_LIST_TYPE:
|
4210
|
-
|
4211
|
-
|
4212
|
-
|
4213
|
-
|
4404
|
+
a: {
|
4405
|
+
type = props.children;
|
4406
|
+
props = props.revealOrder;
|
4407
|
+
if ("forwards" === props || "backwards" === props) {
|
4408
|
+
if (isArrayImpl(type)) {
|
4409
|
+
renderSuspenseListRows(request, task, keyPath, type, props);
|
4410
|
+
break a;
|
4411
|
+
}
|
4412
|
+
if ((newProps = getIteratorFn(type)))
|
4413
|
+
if ((newProps = newProps.call(type))) {
|
4414
|
+
defaultProps = newProps.next();
|
4415
|
+
if (!defaultProps.done) {
|
4416
|
+
do defaultProps = newProps.next();
|
4417
|
+
while (!defaultProps.done);
|
4418
|
+
renderSuspenseListRows(request, task, keyPath, type, props);
|
4419
|
+
}
|
4420
|
+
break a;
|
4421
|
+
}
|
4422
|
+
}
|
4423
|
+
"together" === props
|
4424
|
+
? ((props = task.keyPath),
|
4425
|
+
(newProps = task.row),
|
4426
|
+
(defaultProps = task.row = createSuspenseListRow(null)),
|
4427
|
+
(defaultProps.boundaries = []),
|
4428
|
+
(defaultProps.together = !0),
|
4429
|
+
(task.keyPath = keyPath),
|
4430
|
+
renderNodeDestructive(request, task, type, -1),
|
4431
|
+
0 === --defaultProps.pendingTasks &&
|
4432
|
+
finishSuspenseListRow(request, defaultProps),
|
4433
|
+
(task.keyPath = props),
|
4434
|
+
(task.row = newProps),
|
4435
|
+
null !== newProps &&
|
4436
|
+
0 < defaultProps.pendingTasks &&
|
4437
|
+
(newProps.pendingTasks++, (defaultProps.next = newProps)))
|
4438
|
+
: ((props = task.keyPath),
|
4439
|
+
(task.keyPath = keyPath),
|
4440
|
+
renderNodeDestructive(request, task, type, -1),
|
4441
|
+
(task.keyPath = props));
|
4442
|
+
}
|
4214
4443
|
return;
|
4215
4444
|
case REACT_VIEW_TRANSITION_TYPE:
|
4216
4445
|
case REACT_SCOPE_TYPE:
|
@@ -4219,21 +4448,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4219
4448
|
a: if (null !== task.replay) {
|
4220
4449
|
type = task.keyPath;
|
4221
4450
|
newProps = task.formatContext;
|
4451
|
+
defaultProps = task.row;
|
4222
4452
|
task.keyPath = keyPath;
|
4223
4453
|
task.formatContext = getSuspenseContentFormatContext(
|
4224
4454
|
request.resumableState,
|
4225
4455
|
newProps
|
4226
4456
|
);
|
4457
|
+
task.row = null;
|
4227
4458
|
keyPath = props.children;
|
4228
4459
|
try {
|
4229
4460
|
renderNode(request, task, keyPath, -1);
|
4230
4461
|
} finally {
|
4231
|
-
(task.keyPath = type),
|
4462
|
+
(task.keyPath = type),
|
4463
|
+
(task.formatContext = newProps),
|
4464
|
+
(task.row = defaultProps);
|
4232
4465
|
}
|
4233
4466
|
} else {
|
4234
4467
|
type = task.keyPath;
|
4235
4468
|
ref = task.formatContext;
|
4236
|
-
|
4469
|
+
var prevRow = task.row;
|
4470
|
+
propName$43 = task.blockedBoundary;
|
4237
4471
|
propName = task.blockedPreamble;
|
4238
4472
|
var parentHoistableState = task.hoistableState,
|
4239
4473
|
parentSegment = task.blockedSegment,
|
@@ -4244,11 +4478,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4244
4478
|
2 > task.formatContext.insertionMode
|
4245
4479
|
? createSuspenseBoundary(
|
4246
4480
|
request,
|
4481
|
+
task.row,
|
4247
4482
|
fallbackAbortSet,
|
4248
4483
|
createPreambleState(),
|
4249
4484
|
createPreambleState()
|
4250
4485
|
)
|
4251
|
-
: createSuspenseBoundary(
|
4486
|
+
: createSuspenseBoundary(
|
4487
|
+
request,
|
4488
|
+
task.row,
|
4489
|
+
fallbackAbortSet,
|
4490
|
+
null,
|
4491
|
+
null
|
4492
|
+
);
|
4252
4493
|
null !== request.trackedPostpones &&
|
4253
4494
|
(newBoundary.trackedContentKeyPath = keyPath);
|
4254
4495
|
var boundarySegment = createPendingSegment(
|
@@ -4285,11 +4526,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4285
4526
|
boundarySegment.status = 6;
|
4286
4527
|
try {
|
4287
4528
|
renderNode(request, task, fallback, -1),
|
4288
|
-
|
4289
|
-
boundarySegment.
|
4290
|
-
|
4529
|
+
pushSegmentFinale(
|
4530
|
+
boundarySegment.chunks,
|
4531
|
+
request.renderState,
|
4532
|
+
boundarySegment.lastPushedText,
|
4533
|
+
boundarySegment.textEmbedded
|
4534
|
+
),
|
4291
4535
|
(boundarySegment.status = 1),
|
4292
|
-
finishedSegment(request, propName$
|
4536
|
+
finishedSegment(request, propName$43, boundarySegment);
|
4293
4537
|
} catch (thrownValue) {
|
4294
4538
|
throw (
|
4295
4539
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
@@ -4318,6 +4562,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4318
4562
|
),
|
4319
4563
|
task.context,
|
4320
4564
|
task.treeContext,
|
4565
|
+
null,
|
4321
4566
|
task.componentStack
|
4322
4567
|
);
|
4323
4568
|
pushComponentStack(task);
|
@@ -4332,32 +4577,42 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4332
4577
|
request.resumableState,
|
4333
4578
|
ref
|
4334
4579
|
);
|
4580
|
+
task.row = null;
|
4335
4581
|
contentRootSegment.status = 6;
|
4336
4582
|
try {
|
4337
4583
|
if (
|
4338
4584
|
(renderNode(request, task, props, -1),
|
4339
|
-
|
4340
|
-
contentRootSegment.
|
4341
|
-
|
4585
|
+
pushSegmentFinale(
|
4586
|
+
contentRootSegment.chunks,
|
4587
|
+
request.renderState,
|
4588
|
+
contentRootSegment.lastPushedText,
|
4589
|
+
contentRootSegment.textEmbedded
|
4590
|
+
),
|
4342
4591
|
(contentRootSegment.status = 1),
|
4343
4592
|
finishedSegment(request, newBoundary, contentRootSegment),
|
4344
4593
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
4345
|
-
0 === newBoundary.pendingTasks &&
|
4346
|
-
0 === newBoundary.status &&
|
4347
|
-
((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
|
4594
|
+
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
4348
4595
|
) {
|
4349
|
-
|
4350
|
-
|
4351
|
-
|
4352
|
-
|
4353
|
-
|
4354
|
-
|
4596
|
+
if (((newBoundary.status = 1), !(500 < newBoundary.byteSize))) {
|
4597
|
+
null !== prevRow &&
|
4598
|
+
0 === --prevRow.pendingTasks &&
|
4599
|
+
finishSuspenseListRow(request, prevRow);
|
4600
|
+
0 === request.pendingRootTasks &&
|
4601
|
+
task.blockedPreamble &&
|
4602
|
+
preparePreamble(request);
|
4603
|
+
break a;
|
4604
|
+
}
|
4605
|
+
} else
|
4606
|
+
null !== prevRow &&
|
4607
|
+
prevRow.together &&
|
4608
|
+
tryToResolveTogetherRow(request, prevRow);
|
4609
|
+
} catch (thrownValue$30) {
|
4355
4610
|
(newBoundary.status = 4),
|
4356
4611
|
12 === request.status
|
4357
4612
|
? ((contentRootSegment.status = 3),
|
4358
4613
|
(newProps = request.fatalError))
|
4359
4614
|
: ((contentRootSegment.status = 4),
|
4360
|
-
(newProps = thrownValue$
|
4615
|
+
(newProps = thrownValue$30)),
|
4361
4616
|
(defaultProps = getThrownInfo(task.componentStack)),
|
4362
4617
|
(initialState = logRecoverableError(
|
4363
4618
|
request,
|
@@ -4367,19 +4622,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4367
4622
|
(newBoundary.errorDigest = initialState),
|
4368
4623
|
untrackBoundary(request, newBoundary);
|
4369
4624
|
} finally {
|
4370
|
-
(task.blockedBoundary = propName$
|
4625
|
+
(task.blockedBoundary = propName$43),
|
4371
4626
|
(task.blockedPreamble = propName),
|
4372
4627
|
(task.hoistableState = parentHoistableState),
|
4373
4628
|
(task.blockedSegment = parentSegment),
|
4374
4629
|
(task.keyPath = type),
|
4375
|
-
(task.formatContext = ref)
|
4630
|
+
(task.formatContext = ref),
|
4631
|
+
(task.row = prevRow);
|
4376
4632
|
}
|
4377
4633
|
task = createRenderTask(
|
4378
4634
|
request,
|
4379
4635
|
null,
|
4380
4636
|
fallback,
|
4381
4637
|
-1,
|
4382
|
-
propName$
|
4638
|
+
propName$43,
|
4383
4639
|
boundarySegment,
|
4384
4640
|
newBoundary.fallbackPreamble,
|
4385
4641
|
newBoundary.fallbackState,
|
@@ -4391,6 +4647,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4391
4647
|
),
|
4392
4648
|
task.context,
|
4393
4649
|
task.treeContext,
|
4650
|
+
task.row,
|
4394
4651
|
task.componentStack
|
4395
4652
|
);
|
4396
4653
|
pushComponentStack(task);
|
@@ -4610,6 +4867,7 @@ function retryNode(request, task) {
|
|
4610
4867
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
4611
4868
|
var prevKeyPath = task.keyPath,
|
4612
4869
|
prevContext = task.formatContext,
|
4870
|
+
prevRow = task.row,
|
4613
4871
|
previousReplaySet = task.replay,
|
4614
4872
|
parentBoundary = task.blockedBoundary,
|
4615
4873
|
parentHoistableState = task.hoistableState,
|
@@ -4620,12 +4878,14 @@ function retryNode(request, task) {
|
|
4620
4878
|
2 > task.formatContext.insertionMode
|
4621
4879
|
? createSuspenseBoundary(
|
4622
4880
|
request,
|
4881
|
+
task.row,
|
4623
4882
|
fallbackAbortSet,
|
4624
4883
|
createPreambleState(),
|
4625
4884
|
createPreambleState()
|
4626
4885
|
)
|
4627
4886
|
: createSuspenseBoundary(
|
4628
4887
|
request,
|
4888
|
+
task.row,
|
4629
4889
|
fallbackAbortSet,
|
4630
4890
|
null,
|
4631
4891
|
null
|
@@ -4639,6 +4899,7 @@ function retryNode(request, task) {
|
|
4639
4899
|
request.resumableState,
|
4640
4900
|
prevContext
|
4641
4901
|
);
|
4902
|
+
task.row = null;
|
4642
4903
|
task.replay = {
|
4643
4904
|
nodes: ref,
|
4644
4905
|
slots: name,
|
@@ -4675,9 +4936,10 @@ function retryNode(request, task) {
|
|
4675
4936
|
(task.hoistableState = parentHoistableState),
|
4676
4937
|
(task.replay = previousReplaySet),
|
4677
4938
|
(task.keyPath = prevKeyPath),
|
4678
|
-
(task.formatContext = prevContext)
|
4939
|
+
(task.formatContext = prevContext),
|
4940
|
+
(task.row = prevRow);
|
4679
4941
|
}
|
4680
|
-
|
4942
|
+
childNodes = createReplayTask(
|
4681
4943
|
request,
|
4682
4944
|
null,
|
4683
4945
|
{
|
@@ -4697,10 +4959,11 @@ function retryNode(request, task) {
|
|
4697
4959
|
),
|
4698
4960
|
task.context,
|
4699
4961
|
task.treeContext,
|
4962
|
+
task.row,
|
4700
4963
|
task.componentStack
|
4701
4964
|
);
|
4702
|
-
pushComponentStack(
|
4703
|
-
request.pingedTasks.push(
|
4965
|
+
pushComponentStack(childNodes);
|
4966
|
+
request.pingedTasks.push(childNodes);
|
4704
4967
|
}
|
4705
4968
|
}
|
4706
4969
|
childIndex.splice(node, 1);
|
@@ -4725,22 +4988,17 @@ function retryNode(request, task) {
|
|
4725
4988
|
renderChildrenArray(request, task, node, childIndex);
|
4726
4989
|
return;
|
4727
4990
|
}
|
4728
|
-
|
4729
|
-
|
4730
|
-
|
4731
|
-
|
4732
|
-
|
4733
|
-
|
4734
|
-
|
4735
|
-
|
4736
|
-
|
4737
|
-
|
4738
|
-
do props.push(node.value), (node = childNodes.next());
|
4739
|
-
while (!node.done);
|
4740
|
-
renderChildrenArray(request, task, props, childIndex);
|
4991
|
+
if ((childNodes = getIteratorFn(node)))
|
4992
|
+
if ((childNodes = childNodes.call(node))) {
|
4993
|
+
node = childNodes.next();
|
4994
|
+
if (!node.done) {
|
4995
|
+
props = [];
|
4996
|
+
do props.push(node.value), (node = childNodes.next());
|
4997
|
+
while (!node.done);
|
4998
|
+
renderChildrenArray(request, task, props, childIndex);
|
4999
|
+
}
|
5000
|
+
return;
|
4741
5001
|
}
|
4742
|
-
return;
|
4743
|
-
}
|
4744
5002
|
if ("function" === typeof node.then)
|
4745
5003
|
return (
|
4746
5004
|
(task.thenableState = null),
|
@@ -4883,6 +5141,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
4883
5141
|
task.formatContext,
|
4884
5142
|
task.context,
|
4885
5143
|
task.treeContext,
|
5144
|
+
task.row,
|
4886
5145
|
task.componentStack
|
4887
5146
|
);
|
4888
5147
|
}
|
@@ -4912,6 +5171,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
4912
5171
|
task.formatContext,
|
4913
5172
|
task.context,
|
4914
5173
|
task.treeContext,
|
5174
|
+
task.row,
|
4915
5175
|
task.componentStack
|
4916
5176
|
);
|
4917
5177
|
}
|
@@ -4965,15 +5225,15 @@ function renderNode(request, task, node, childIndex) {
|
|
4965
5225
|
chunkLength = segment.chunks.length;
|
4966
5226
|
try {
|
4967
5227
|
return renderNodeDestructive(request, task, node, childIndex);
|
4968
|
-
} catch (thrownValue$
|
5228
|
+
} catch (thrownValue$59) {
|
4969
5229
|
if (
|
4970
5230
|
(resetHooksState(),
|
4971
5231
|
(segment.children.length = childrenLength),
|
4972
5232
|
(segment.chunks.length = chunkLength),
|
4973
5233
|
(node =
|
4974
|
-
thrownValue$
|
5234
|
+
thrownValue$59 === SuspenseException
|
4975
5235
|
? getSuspendedThenable()
|
4976
|
-
: thrownValue$
|
5236
|
+
: thrownValue$59),
|
4977
5237
|
"object" === typeof node && null !== node)
|
4978
5238
|
) {
|
4979
5239
|
if ("function" === typeof node.then) {
|
@@ -5011,9 +5271,10 @@ function renderNode(request, task, node, childIndex) {
|
|
5011
5271
|
throw node;
|
5012
5272
|
}
|
5013
5273
|
function abortTaskSoft(task) {
|
5014
|
-
var boundary = task.blockedBoundary
|
5015
|
-
|
5016
|
-
null !==
|
5274
|
+
var boundary = task.blockedBoundary,
|
5275
|
+
segment = task.blockedSegment;
|
5276
|
+
null !== segment &&
|
5277
|
+
((segment.status = 3), finishedTask(this, boundary, task.row, segment));
|
5017
5278
|
}
|
5018
5279
|
function abortRemainingReplayNodes(
|
5019
5280
|
request$jscomp$0,
|
@@ -5040,6 +5301,7 @@ function abortRemainingReplayNodes(
|
|
5040
5301
|
errorDigest = errorDigest$jscomp$0,
|
5041
5302
|
resumedBoundary = createSuspenseBoundary(
|
5042
5303
|
request,
|
5304
|
+
null,
|
5043
5305
|
new Set(),
|
5044
5306
|
null,
|
5045
5307
|
null
|
@@ -5085,32 +5347,40 @@ function abortTask(task, request, error) {
|
|
5085
5347
|
boundary.pendingTasks--;
|
5086
5348
|
0 === boundary.pendingTasks &&
|
5087
5349
|
0 < boundary.nodes.length &&
|
5088
|
-
((
|
5350
|
+
((segment = logRecoverableError(request, error, segment)),
|
5089
5351
|
abortRemainingReplayNodes(
|
5090
5352
|
request,
|
5091
5353
|
null,
|
5092
5354
|
boundary.nodes,
|
5093
5355
|
boundary.slots,
|
5094
5356
|
error,
|
5095
|
-
|
5357
|
+
segment
|
5096
5358
|
));
|
5097
5359
|
request.pendingRootTasks--;
|
5098
5360
|
0 === request.pendingRootTasks && completeShell(request);
|
5099
5361
|
}
|
5100
5362
|
} else
|
5101
|
-
boundary.
|
5102
|
-
|
5103
|
-
|
5104
|
-
|
5105
|
-
|
5106
|
-
|
5107
|
-
|
5108
|
-
boundary
|
5109
|
-
|
5363
|
+
4 !== boundary.status &&
|
5364
|
+
((boundary.status = 4),
|
5365
|
+
(segment = logRecoverableError(request, error, segment)),
|
5366
|
+
(boundary.status = 4),
|
5367
|
+
(boundary.errorDigest = segment),
|
5368
|
+
untrackBoundary(request, boundary),
|
5369
|
+
boundary.parentFlushed &&
|
5370
|
+
request.clientRenderedBoundaries.push(boundary)),
|
5371
|
+
boundary.pendingTasks--,
|
5372
|
+
(segment = boundary.row),
|
5373
|
+
null !== segment &&
|
5374
|
+
0 === --segment.pendingTasks &&
|
5375
|
+
finishSuspenseListRow(request, segment),
|
5110
5376
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
5111
5377
|
return abortTask(fallbackTask, request, error);
|
5112
5378
|
}),
|
5113
5379
|
boundary.fallbackAbortableTasks.clear();
|
5380
|
+
task = task.row;
|
5381
|
+
null !== task &&
|
5382
|
+
0 === --task.pendingTasks &&
|
5383
|
+
finishSuspenseListRow(request, task);
|
5114
5384
|
request.allPendingTasks--;
|
5115
5385
|
0 === request.allPendingTasks && completeAll(request);
|
5116
5386
|
}
|
@@ -5217,7 +5487,11 @@ function finishedSegment(request, boundary, segment) {
|
|
5217
5487
|
: (boundary.byteSize += segmentByteSize);
|
5218
5488
|
}
|
5219
5489
|
}
|
5220
|
-
function finishedTask(request, boundary, segment) {
|
5490
|
+
function finishedTask(request, boundary, row, segment) {
|
5491
|
+
null !== row &&
|
5492
|
+
(0 === --row.pendingTasks
|
5493
|
+
? finishSuspenseListRow(request, row)
|
5494
|
+
: row.together && tryToResolveTogetherRow(request, row));
|
5221
5495
|
request.allPendingTasks--;
|
5222
5496
|
if (null === boundary) {
|
5223
5497
|
if (null !== segment && segment.parentFlushed) {
|
@@ -5241,23 +5515,33 @@ function finishedTask(request, boundary, segment) {
|
|
5241
5515
|
boundary.parentFlushed &&
|
5242
5516
|
request.completedBoundaries.push(boundary),
|
5243
5517
|
1 === boundary.status &&
|
5244
|
-
(
|
5518
|
+
((row = boundary.row),
|
5519
|
+
null !== row &&
|
5520
|
+
hoistHoistables(row.hoistables, boundary.contentState),
|
5521
|
+
500 < boundary.byteSize ||
|
5245
5522
|
(boundary.fallbackAbortableTasks.forEach(
|
5246
5523
|
abortTaskSoft,
|
5247
5524
|
request
|
5248
5525
|
),
|
5249
|
-
boundary.fallbackAbortableTasks.clear()
|
5526
|
+
boundary.fallbackAbortableTasks.clear(),
|
5527
|
+
null !== row &&
|
5528
|
+
0 === --row.pendingTasks &&
|
5529
|
+
finishSuspenseListRow(request, row)),
|
5250
5530
|
0 === request.pendingRootTasks &&
|
5251
5531
|
null === request.trackedPostpones &&
|
5252
5532
|
null !== boundary.contentPreamble &&
|
5253
5533
|
preparePreamble(request)))
|
5254
|
-
: null !== segment &&
|
5255
|
-
|
5256
|
-
|
5257
|
-
|
5258
|
-
|
5259
|
-
|
5260
|
-
|
5534
|
+
: (null !== segment &&
|
5535
|
+
segment.parentFlushed &&
|
5536
|
+
1 === segment.status &&
|
5537
|
+
(queueCompletedSegment(boundary, segment),
|
5538
|
+
1 === boundary.completedSegments.length &&
|
5539
|
+
boundary.parentFlushed &&
|
5540
|
+
request.partialBoundaries.push(boundary)),
|
5541
|
+
(boundary = boundary.row),
|
5542
|
+
null !== boundary &&
|
5543
|
+
boundary.together &&
|
5544
|
+
tryToResolveTogetherRow(request, boundary)));
|
5261
5545
|
0 === request.allPendingTasks && completeAll(request);
|
5262
5546
|
}
|
5263
5547
|
function performWork(request$jscomp$2) {
|
@@ -5301,7 +5585,12 @@ function performWork(request$jscomp$2) {
|
|
5301
5585
|
);
|
5302
5586
|
task.replay.pendingTasks--;
|
5303
5587
|
task.abortSet.delete(task);
|
5304
|
-
finishedTask(
|
5588
|
+
finishedTask(
|
5589
|
+
request$jscomp$0,
|
5590
|
+
task.blockedBoundary,
|
5591
|
+
task.row,
|
5592
|
+
null
|
5593
|
+
);
|
5305
5594
|
} catch (thrownValue) {
|
5306
5595
|
resetHooksState();
|
5307
5596
|
var x =
|
@@ -5363,13 +5652,21 @@ function performWork(request$jscomp$2) {
|
|
5363
5652
|
chunkLength = request$jscomp$1.chunks.length;
|
5364
5653
|
try {
|
5365
5654
|
retryNode(request, task),
|
5366
|
-
|
5367
|
-
request$jscomp$1.
|
5368
|
-
request
|
5655
|
+
pushSegmentFinale(
|
5656
|
+
request$jscomp$1.chunks,
|
5657
|
+
request.renderState,
|
5658
|
+
request$jscomp$1.lastPushedText,
|
5659
|
+
request$jscomp$1.textEmbedded
|
5660
|
+
),
|
5369
5661
|
task.abortSet.delete(task),
|
5370
5662
|
(request$jscomp$1.status = 1),
|
5371
5663
|
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
5372
|
-
finishedTask(
|
5664
|
+
finishedTask(
|
5665
|
+
request,
|
5666
|
+
task.blockedBoundary,
|
5667
|
+
task.row,
|
5668
|
+
request$jscomp$1
|
5669
|
+
);
|
5373
5670
|
} catch (thrownValue) {
|
5374
5671
|
resetHooksState();
|
5375
5672
|
request$jscomp$1.children.length = childrenLength;
|
@@ -5393,26 +5690,36 @@ function performWork(request$jscomp$2) {
|
|
5393
5690
|
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
5394
5691
|
task.abortSet.delete(task);
|
5395
5692
|
request$jscomp$1.status = 4;
|
5396
|
-
var boundary$jscomp$0 = task.blockedBoundary
|
5693
|
+
var boundary$jscomp$0 = task.blockedBoundary,
|
5694
|
+
row = task.row;
|
5695
|
+
null !== row &&
|
5696
|
+
0 === --row.pendingTasks &&
|
5697
|
+
finishSuspenseListRow(request, row);
|
5698
|
+
request.allPendingTasks--;
|
5397
5699
|
request$jscomp$0 = logRecoverableError(
|
5398
5700
|
request,
|
5399
5701
|
x$jscomp$0,
|
5400
5702
|
errorInfo$jscomp$0
|
5401
5703
|
);
|
5402
|
-
null === boundary$jscomp$0
|
5403
|
-
|
5404
|
-
|
5405
|
-
|
5406
|
-
|
5407
|
-
|
5408
|
-
|
5409
|
-
|
5410
|
-
|
5411
|
-
|
5412
|
-
|
5413
|
-
|
5414
|
-
|
5415
|
-
|
5704
|
+
if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
|
5705
|
+
else if (
|
5706
|
+
(boundary$jscomp$0.pendingTasks--,
|
5707
|
+
4 !== boundary$jscomp$0.status)
|
5708
|
+
) {
|
5709
|
+
boundary$jscomp$0.status = 4;
|
5710
|
+
boundary$jscomp$0.errorDigest = request$jscomp$0;
|
5711
|
+
untrackBoundary(request, boundary$jscomp$0);
|
5712
|
+
var boundaryRow = boundary$jscomp$0.row;
|
5713
|
+
null !== boundaryRow &&
|
5714
|
+
0 === --boundaryRow.pendingTasks &&
|
5715
|
+
finishSuspenseListRow(request, boundaryRow);
|
5716
|
+
boundary$jscomp$0.parentFlushed &&
|
5717
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
5718
|
+
0 === request.pendingRootTasks &&
|
5719
|
+
null === request.trackedPostpones &&
|
5720
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
5721
|
+
preparePreamble(request);
|
5722
|
+
}
|
5416
5723
|
0 === request.allPendingTasks && completeAll(request);
|
5417
5724
|
}
|
5418
5725
|
} finally {
|
@@ -5557,17 +5864,21 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5557
5864
|
if (null === boundary)
|
5558
5865
|
return flushSubtree(request, destination, segment, hoistableState);
|
5559
5866
|
boundary.parentFlushed = !0;
|
5560
|
-
if (4 === boundary.status)
|
5561
|
-
|
5562
|
-
|
5563
|
-
|
5564
|
-
|
5565
|
-
|
5566
|
-
|
5567
|
-
|
5568
|
-
|
5569
|
-
|
5570
|
-
|
5867
|
+
if (4 === boundary.status) {
|
5868
|
+
var row = boundary.row;
|
5869
|
+
null !== row &&
|
5870
|
+
0 === --row.pendingTasks &&
|
5871
|
+
finishSuspenseListRow(request, row);
|
5872
|
+
boundary = boundary.errorDigest;
|
5873
|
+
destination.write("\x3c!--$!--\x3e");
|
5874
|
+
writeChunk(destination, "<template");
|
5875
|
+
boundary &&
|
5876
|
+
(writeChunk(destination, ' data-dgst="'),
|
5877
|
+
writeChunk(destination, escapeTextForBrowser(boundary)),
|
5878
|
+
writeChunk(destination, '"'));
|
5879
|
+
destination.write("></template>");
|
5880
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5881
|
+
} else if (1 !== boundary.status)
|
5571
5882
|
0 === boundary.status && (boundary.rootSegmentID = request.nextSegmentId++),
|
5572
5883
|
0 < boundary.completedSegments.length &&
|
5573
5884
|
request.partialBoundaries.push(boundary),
|
@@ -5576,13 +5887,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5576
5887
|
request.renderState,
|
5577
5888
|
boundary.rootSegmentID
|
5578
5889
|
),
|
5579
|
-
hoistableState &&
|
5580
|
-
((boundary = boundary.fallbackState),
|
5581
|
-
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
5582
|
-
boundary.stylesheets.forEach(
|
5583
|
-
hoistStylesheetDependency,
|
5584
|
-
hoistableState
|
5585
|
-
)),
|
5890
|
+
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
5586
5891
|
flushSubtree(request, destination, segment, hoistableState);
|
5587
5892
|
else if (
|
5588
5893
|
500 < boundary.byteSize &&
|
@@ -5598,10 +5903,12 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5598
5903
|
flushSubtree(request, destination, segment, hoistableState);
|
5599
5904
|
else {
|
5600
5905
|
flushedByteSize += boundary.byteSize;
|
5601
|
-
hoistableState &&
|
5602
|
-
|
5603
|
-
|
5604
|
-
|
5906
|
+
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
5907
|
+
segment = boundary.row;
|
5908
|
+
null !== segment &&
|
5909
|
+
500 < boundary.byteSize &&
|
5910
|
+
0 === --segment.pendingTasks &&
|
5911
|
+
finishSuspenseListRow(request, segment);
|
5605
5912
|
destination.write("\x3c!--$--\x3e");
|
5606
5913
|
segment = boundary.completedSegments;
|
5607
5914
|
if (1 !== segment.length)
|
@@ -5636,6 +5943,11 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5636
5943
|
completedSegments[i]
|
5637
5944
|
);
|
5638
5945
|
completedSegments.length = 0;
|
5946
|
+
completedSegments = boundary.row;
|
5947
|
+
null !== completedSegments &&
|
5948
|
+
500 < boundary.byteSize &&
|
5949
|
+
0 === --completedSegments.pendingTasks &&
|
5950
|
+
finishSuspenseListRow(request, completedSegments);
|
5639
5951
|
writeHoistablesForBoundary(
|
5640
5952
|
destination,
|
5641
5953
|
boundary.contentState,
|
@@ -5919,12 +6231,12 @@ function flushCompletedQueues(request, destination) {
|
|
5919
6231
|
completedBoundaries.splice(0, i);
|
5920
6232
|
var partialBoundaries = request.partialBoundaries;
|
5921
6233
|
for (i = 0; i < partialBoundaries.length; i++) {
|
5922
|
-
var boundary$
|
6234
|
+
var boundary$64 = partialBoundaries[i];
|
5923
6235
|
a: {
|
5924
6236
|
clientRenderedBoundaries = request;
|
5925
6237
|
boundary = destination;
|
5926
|
-
flushedByteSize = boundary$
|
5927
|
-
var completedSegments = boundary$
|
6238
|
+
flushedByteSize = boundary$64.byteSize;
|
6239
|
+
var completedSegments = boundary$64.completedSegments;
|
5928
6240
|
for (
|
5929
6241
|
JSCompiler_inline_result = 0;
|
5930
6242
|
JSCompiler_inline_result < completedSegments.length;
|
@@ -5934,7 +6246,7 @@ function flushCompletedQueues(request, destination) {
|
|
5934
6246
|
!flushPartiallyCompletedSegment(
|
5935
6247
|
clientRenderedBoundaries,
|
5936
6248
|
boundary,
|
5937
|
-
boundary$
|
6249
|
+
boundary$64,
|
5938
6250
|
completedSegments[JSCompiler_inline_result]
|
5939
6251
|
)
|
5940
6252
|
) {
|
@@ -5944,9 +6256,20 @@ function flushCompletedQueues(request, destination) {
|
|
5944
6256
|
break a;
|
5945
6257
|
}
|
5946
6258
|
completedSegments.splice(0, JSCompiler_inline_result);
|
6259
|
+
var row = boundary$64.row;
|
6260
|
+
null !== row &&
|
6261
|
+
row.together &&
|
6262
|
+
1 === boundary$64.pendingTasks &&
|
6263
|
+
(1 === row.pendingTasks
|
6264
|
+
? unblockSuspenseListRow(
|
6265
|
+
clientRenderedBoundaries,
|
6266
|
+
row,
|
6267
|
+
row.hoistables
|
6268
|
+
)
|
6269
|
+
: row.pendingTasks--);
|
5947
6270
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
5948
6271
|
boundary,
|
5949
|
-
boundary$
|
6272
|
+
boundary$64.contentState,
|
5950
6273
|
clientRenderedBoundaries.renderState
|
5951
6274
|
);
|
5952
6275
|
}
|
@@ -6027,19 +6350,19 @@ function abort(request, reason) {
|
|
6027
6350
|
}
|
6028
6351
|
null !== request.destination &&
|
6029
6352
|
flushCompletedQueues(request, request.destination);
|
6030
|
-
} catch (error$
|
6031
|
-
logRecoverableError(request, error$
|
6353
|
+
} catch (error$66) {
|
6354
|
+
logRecoverableError(request, error$66, {}), fatalError(request, error$66);
|
6032
6355
|
}
|
6033
6356
|
}
|
6034
|
-
var isomorphicReactPackageVersion$jscomp$
|
6357
|
+
var isomorphicReactPackageVersion$jscomp$inline_801 = React.version;
|
6035
6358
|
if (
|
6036
|
-
"19.2.0-canary-
|
6037
|
-
isomorphicReactPackageVersion$jscomp$
|
6359
|
+
"19.2.0-canary-23884812-20250520" !==
|
6360
|
+
isomorphicReactPackageVersion$jscomp$inline_801
|
6038
6361
|
)
|
6039
6362
|
throw Error(
|
6040
6363
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6041
|
-
(isomorphicReactPackageVersion$jscomp$
|
6042
|
-
"\n - react-dom: 19.2.0-canary-
|
6364
|
+
(isomorphicReactPackageVersion$jscomp$inline_801 +
|
6365
|
+
"\n - react-dom: 19.2.0-canary-23884812-20250520\nLearn more: https://react.dev/warnings/version-mismatch")
|
6043
6366
|
);
|
6044
6367
|
exports.renderToReadableStream = function (children, options) {
|
6045
6368
|
return new Promise(function (resolve, reject) {
|
@@ -6130,4 +6453,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6130
6453
|
startWork(request);
|
6131
6454
|
});
|
6132
6455
|
};
|
6133
|
-
exports.version = "19.2.0-canary-
|
6456
|
+
exports.version = "19.2.0-canary-23884812-20250520";
|