react-dom 19.2.0-canary-462d08f9-20250517 → 19.2.0-canary-c4676e72-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 +418 -152
- package/cjs/react-dom-server-legacy.browser.production.js +338 -106
- package/cjs/react-dom-server-legacy.node.development.js +418 -152
- package/cjs/react-dom-server-legacy.node.production.js +338 -106
- package/cjs/react-dom-server.browser.development.js +412 -148
- package/cjs/react-dom-server.browser.production.js +313 -82
- package/cjs/react-dom-server.bun.development.js +440 -160
- package/cjs/react-dom-server.bun.production.js +337 -91
- package/cjs/react-dom-server.edge.development.js +412 -148
- package/cjs/react-dom-server.edge.production.js +313 -82
- package/cjs/react-dom-server.node.development.js +412 -145
- package/cjs/react-dom-server.node.production.js +313 -82
- 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
|
jsxPropsParents = new WeakMap(),
|
35
42
|
jsxChildrenParents = new WeakMap();
|
36
43
|
function objectName(object) {
|
@@ -1747,6 +1754,9 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
1747
1754
|
target.push(escapeTextForBrowser(text));
|
1748
1755
|
return !0;
|
1749
1756
|
}
|
1757
|
+
function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
|
1758
|
+
lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e");
|
1759
|
+
}
|
1750
1760
|
var styleNameCache = new Map(),
|
1751
1761
|
styleAttributeStart = ' style="',
|
1752
1762
|
styleAssign = ":",
|
@@ -5582,6 +5592,7 @@ var CLIENT_RENDERED = 4,
|
|
5582
5592
|
PENDING = 0,
|
5583
5593
|
COMPLETED = 1,
|
5584
5594
|
FLUSHED = 2,
|
5595
|
+
ABORTED = 3,
|
5585
5596
|
POSTPONED = 5,
|
5586
5597
|
CLOSED = 14;
|
5587
5598
|
function defaultErrorHandler(error) {
|
@@ -5711,6 +5722,7 @@ function createRequest(
|
|
5711
5722
|
null,
|
5712
5723
|
emptyTreeContext,
|
5713
5724
|
null,
|
5725
|
+
null,
|
5714
5726
|
emptyContextObject,
|
5715
5727
|
null
|
5716
5728
|
);
|
@@ -5733,15 +5745,17 @@ function pingTask(request, task) {
|
|
5733
5745
|
}
|
5734
5746
|
function createSuspenseBoundary(
|
5735
5747
|
request,
|
5748
|
+
row,
|
5736
5749
|
fallbackAbortableTasks,
|
5737
5750
|
contentPreamble,
|
5738
5751
|
fallbackPreamble
|
5739
5752
|
) {
|
5740
|
-
|
5753
|
+
fallbackAbortableTasks = {
|
5741
5754
|
status: PENDING,
|
5742
5755
|
rootSegmentID: -1,
|
5743
5756
|
parentFlushed: !1,
|
5744
5757
|
pendingTasks: 0,
|
5758
|
+
row: row,
|
5745
5759
|
completedSegments: [],
|
5746
5760
|
byteSize: 0,
|
5747
5761
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
@@ -5756,6 +5770,14 @@ function createSuspenseBoundary(
|
|
5756
5770
|
errorStack: null,
|
5757
5771
|
errorComponentStack: null
|
5758
5772
|
};
|
5773
|
+
null !== row &&
|
5774
|
+
(row.pendingTasks++,
|
5775
|
+
(row = row.boundaries),
|
5776
|
+
null !== row &&
|
5777
|
+
(request.allPendingTasks++,
|
5778
|
+
fallbackAbortableTasks.pendingTasks++,
|
5779
|
+
row.push(fallbackAbortableTasks)));
|
5780
|
+
return fallbackAbortableTasks;
|
5759
5781
|
}
|
5760
5782
|
function createRenderTask(
|
5761
5783
|
request,
|
@@ -5771,6 +5793,7 @@ function createRenderTask(
|
|
5771
5793
|
formatContext,
|
5772
5794
|
context,
|
5773
5795
|
treeContext,
|
5796
|
+
row,
|
5774
5797
|
componentStack,
|
5775
5798
|
legacyContext,
|
5776
5799
|
debugTask
|
@@ -5779,6 +5802,7 @@ function createRenderTask(
|
|
5779
5802
|
null === blockedBoundary
|
5780
5803
|
? request.pendingRootTasks++
|
5781
5804
|
: blockedBoundary.pendingTasks++;
|
5805
|
+
null !== row && row.pendingTasks++;
|
5782
5806
|
var task = {
|
5783
5807
|
replay: null,
|
5784
5808
|
node: node,
|
@@ -5795,6 +5819,7 @@ function createRenderTask(
|
|
5795
5819
|
formatContext: formatContext,
|
5796
5820
|
context: context,
|
5797
5821
|
treeContext: treeContext,
|
5822
|
+
row: row,
|
5798
5823
|
componentStack: componentStack,
|
5799
5824
|
thenableState: thenableState
|
5800
5825
|
};
|
@@ -5815,6 +5840,7 @@ function createReplayTask(
|
|
5815
5840
|
formatContext,
|
5816
5841
|
context,
|
5817
5842
|
treeContext,
|
5843
|
+
row,
|
5818
5844
|
componentStack,
|
5819
5845
|
legacyContext,
|
5820
5846
|
debugTask
|
@@ -5823,6 +5849,7 @@ function createReplayTask(
|
|
5823
5849
|
null === blockedBoundary
|
5824
5850
|
? request.pendingRootTasks++
|
5825
5851
|
: blockedBoundary.pendingTasks++;
|
5852
|
+
null !== row && row.pendingTasks++;
|
5826
5853
|
replay.pendingTasks++;
|
5827
5854
|
var task = {
|
5828
5855
|
replay: replay,
|
@@ -5840,6 +5867,7 @@ function createReplayTask(
|
|
5840
5867
|
formatContext: formatContext,
|
5841
5868
|
context: context,
|
5842
5869
|
treeContext: treeContext,
|
5870
|
+
row: row,
|
5843
5871
|
componentStack: componentStack,
|
5844
5872
|
thenableState: thenableState
|
5845
5873
|
};
|
@@ -6023,6 +6051,140 @@ function fatalError(request, error, errorInfo, debugTask) {
|
|
6023
6051
|
? ((request.status = CLOSED), closeWithError(request.destination, error))
|
6024
6052
|
: ((request.status = 13), (request.fatalError = error));
|
6025
6053
|
}
|
6054
|
+
function finishSuspenseListRow(request, row) {
|
6055
|
+
for (row = row.next; null !== row; ) {
|
6056
|
+
var unblockedBoundaries = row.boundaries;
|
6057
|
+
if (null !== unblockedBoundaries) {
|
6058
|
+
row.boundaries = null;
|
6059
|
+
for (var i = 0; i < unblockedBoundaries.length; i++)
|
6060
|
+
finishedTask(request, unblockedBoundaries[i], null, null);
|
6061
|
+
}
|
6062
|
+
row.pendingTasks--;
|
6063
|
+
if (0 < row.pendingTasks) break;
|
6064
|
+
row = row.next;
|
6065
|
+
}
|
6066
|
+
}
|
6067
|
+
function createSuspenseListRow(previousRow) {
|
6068
|
+
var newRow = { pendingTasks: 1, boundaries: null, next: null };
|
6069
|
+
null !== previousRow &&
|
6070
|
+
0 < previousRow.pendingTasks &&
|
6071
|
+
(newRow.pendingTasks++,
|
6072
|
+
(newRow.boundaries = []),
|
6073
|
+
(previousRow.next = newRow));
|
6074
|
+
return newRow;
|
6075
|
+
}
|
6076
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
6077
|
+
keyPath = task.keyPath;
|
6078
|
+
var previousComponentStack = task.componentStack;
|
6079
|
+
var previousDebugTask = task.debugTask;
|
6080
|
+
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
6081
|
+
var prevTreeContext = task.treeContext,
|
6082
|
+
prevRow = task.row,
|
6083
|
+
totalChildren = rows.length,
|
6084
|
+
previousSuspenseListRow = null;
|
6085
|
+
if (null !== task.replay) {
|
6086
|
+
var resumeSlots = task.replay.slots;
|
6087
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
6088
|
+
for (var n = 0; n < totalChildren; n++) {
|
6089
|
+
var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
|
6090
|
+
node = rows[i];
|
6091
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
6092
|
+
previousSuspenseListRow
|
6093
|
+
);
|
6094
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
6095
|
+
var resumeSegmentID = resumeSlots[i];
|
6096
|
+
"number" === typeof resumeSegmentID
|
6097
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
6098
|
+
delete resumeSlots[i])
|
6099
|
+
: renderNode(request, task, node, i);
|
6100
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
6101
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
6102
|
+
}
|
6103
|
+
else
|
6104
|
+
for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
|
6105
|
+
(n =
|
6106
|
+
"backwards" !== revealOrder
|
6107
|
+
? resumeSlots
|
6108
|
+
: totalChildren - 1 - resumeSlots),
|
6109
|
+
(i = rows[n]),
|
6110
|
+
warnForMissingKey(request, task, i),
|
6111
|
+
(task.row = previousSuspenseListRow =
|
6112
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
6113
|
+
(task.treeContext = pushTreeContext(
|
6114
|
+
prevTreeContext,
|
6115
|
+
totalChildren,
|
6116
|
+
n
|
6117
|
+
)),
|
6118
|
+
renderNode(request, task, i, n),
|
6119
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
6120
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
6121
|
+
} else if ("backwards" !== revealOrder)
|
6122
|
+
for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
|
6123
|
+
(resumeSlots = rows[revealOrder]),
|
6124
|
+
warnForMissingKey(request, task, resumeSlots),
|
6125
|
+
(task.row = previousSuspenseListRow =
|
6126
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
6127
|
+
(task.treeContext = pushTreeContext(
|
6128
|
+
prevTreeContext,
|
6129
|
+
totalChildren,
|
6130
|
+
revealOrder
|
6131
|
+
)),
|
6132
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
6133
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
6134
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
6135
|
+
else {
|
6136
|
+
revealOrder = task.blockedSegment;
|
6137
|
+
resumeSlots = revealOrder.children.length;
|
6138
|
+
n = revealOrder.chunks.length;
|
6139
|
+
for (i = totalChildren - 1; 0 <= i; i--) {
|
6140
|
+
node = rows[i];
|
6141
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
6142
|
+
previousSuspenseListRow
|
6143
|
+
);
|
6144
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
6145
|
+
resumeSegmentID = createPendingSegment(
|
6146
|
+
request,
|
6147
|
+
n,
|
6148
|
+
null,
|
6149
|
+
task.formatContext,
|
6150
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
6151
|
+
!0
|
6152
|
+
);
|
6153
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
6154
|
+
task.blockedSegment = resumeSegmentID;
|
6155
|
+
warnForMissingKey(request, task, node);
|
6156
|
+
try {
|
6157
|
+
renderNode(request, task, node, i),
|
6158
|
+
pushSegmentFinale(
|
6159
|
+
resumeSegmentID.chunks,
|
6160
|
+
request.renderState,
|
6161
|
+
resumeSegmentID.lastPushedText,
|
6162
|
+
resumeSegmentID.textEmbedded
|
6163
|
+
),
|
6164
|
+
(resumeSegmentID.status = COMPLETED),
|
6165
|
+
finishedSegment(request, task.blockedBoundary, resumeSegmentID),
|
6166
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
6167
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
6168
|
+
} catch (thrownValue) {
|
6169
|
+
throw (
|
6170
|
+
((resumeSegmentID.status = 12 === request.status ? ABORTED : 4),
|
6171
|
+
thrownValue)
|
6172
|
+
);
|
6173
|
+
}
|
6174
|
+
}
|
6175
|
+
task.blockedSegment = revealOrder;
|
6176
|
+
revealOrder.lastPushedText = !1;
|
6177
|
+
}
|
6178
|
+
null !== prevRow &&
|
6179
|
+
null !== previousSuspenseListRow &&
|
6180
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
6181
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
6182
|
+
task.treeContext = prevTreeContext;
|
6183
|
+
task.row = prevRow;
|
6184
|
+
task.keyPath = keyPath;
|
6185
|
+
task.componentStack = previousComponentStack;
|
6186
|
+
task.debugTask = previousDebugTask;
|
6187
|
+
}
|
6026
6188
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
6027
6189
|
var prevThenableState = task.thenableState;
|
6028
6190
|
task.thenableState = null;
|
@@ -6557,6 +6719,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6557
6719
|
task.formatContext,
|
6558
6720
|
task.context,
|
6559
6721
|
task.treeContext,
|
6722
|
+
task.row,
|
6560
6723
|
task.componentStack,
|
6561
6724
|
emptyContextObject,
|
6562
6725
|
task.debugTask
|
@@ -6640,10 +6803,53 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6640
6803
|
}
|
6641
6804
|
return;
|
6642
6805
|
case REACT_SUSPENSE_LIST_TYPE:
|
6643
|
-
|
6644
|
-
|
6645
|
-
|
6646
|
-
|
6806
|
+
a: {
|
6807
|
+
var children$jscomp$0 = props.children,
|
6808
|
+
revealOrder = props.revealOrder;
|
6809
|
+
if ("forwards" === revealOrder || "backwards" === revealOrder) {
|
6810
|
+
if (isArrayImpl(children$jscomp$0)) {
|
6811
|
+
renderSuspenseListRows(
|
6812
|
+
request,
|
6813
|
+
task,
|
6814
|
+
keyPath,
|
6815
|
+
children$jscomp$0,
|
6816
|
+
revealOrder
|
6817
|
+
);
|
6818
|
+
break a;
|
6819
|
+
}
|
6820
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
6821
|
+
if (iteratorFn) {
|
6822
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
6823
|
+
if (iterator) {
|
6824
|
+
validateIterable(
|
6825
|
+
task,
|
6826
|
+
children$jscomp$0,
|
6827
|
+
-1,
|
6828
|
+
iterator,
|
6829
|
+
iteratorFn
|
6830
|
+
);
|
6831
|
+
var step = iterator.next();
|
6832
|
+
if (!step.done) {
|
6833
|
+
var rows = [];
|
6834
|
+
do rows.push(step.value), (step = iterator.next());
|
6835
|
+
while (!step.done);
|
6836
|
+
renderSuspenseListRows(
|
6837
|
+
request,
|
6838
|
+
task,
|
6839
|
+
keyPath,
|
6840
|
+
children$jscomp$0,
|
6841
|
+
revealOrder
|
6842
|
+
);
|
6843
|
+
}
|
6844
|
+
break a;
|
6845
|
+
}
|
6846
|
+
}
|
6847
|
+
}
|
6848
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
6849
|
+
task.keyPath = keyPath;
|
6850
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
6851
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
6852
|
+
}
|
6647
6853
|
return;
|
6648
6854
|
case REACT_VIEW_TRANSITION_TYPE:
|
6649
6855
|
case REACT_SCOPE_TYPE:
|
@@ -6651,21 +6857,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6651
6857
|
case REACT_SUSPENSE_TYPE:
|
6652
6858
|
a: if (null !== task.replay) {
|
6653
6859
|
var _prevKeyPath = task.keyPath,
|
6654
|
-
_prevContext = task.formatContext
|
6860
|
+
_prevContext = task.formatContext,
|
6861
|
+
_prevRow = task.row;
|
6655
6862
|
task.keyPath = keyPath;
|
6656
6863
|
task.formatContext = getSuspenseContentFormatContext(
|
6657
6864
|
request.resumableState,
|
6658
6865
|
_prevContext
|
6659
6866
|
);
|
6867
|
+
task.row = null;
|
6660
6868
|
var _content = props.children;
|
6661
6869
|
try {
|
6662
6870
|
renderNode(request, task, _content, -1);
|
6663
6871
|
} finally {
|
6664
|
-
(task.keyPath = _prevKeyPath),
|
6872
|
+
(task.keyPath = _prevKeyPath),
|
6873
|
+
(task.formatContext = _prevContext),
|
6874
|
+
(task.row = _prevRow);
|
6665
6875
|
}
|
6666
6876
|
} else {
|
6667
|
-
var prevKeyPath$jscomp$
|
6877
|
+
var prevKeyPath$jscomp$4 = task.keyPath,
|
6668
6878
|
prevContext$jscomp$0 = task.formatContext,
|
6879
|
+
prevRow = task.row,
|
6669
6880
|
parentBoundary = task.blockedBoundary,
|
6670
6881
|
parentPreamble = task.blockedPreamble,
|
6671
6882
|
parentHoistableState = task.hoistableState,
|
@@ -6677,11 +6888,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6677
6888
|
task.formatContext.insertionMode < HTML_MODE
|
6678
6889
|
? createSuspenseBoundary(
|
6679
6890
|
request,
|
6891
|
+
task.row,
|
6680
6892
|
fallbackAbortSet,
|
6681
6893
|
createPreambleState(),
|
6682
6894
|
createPreambleState()
|
6683
6895
|
)
|
6684
|
-
: createSuspenseBoundary(
|
6896
|
+
: createSuspenseBoundary(
|
6897
|
+
request,
|
6898
|
+
task.row,
|
6899
|
+
fallbackAbortSet,
|
6900
|
+
null,
|
6901
|
+
null
|
6902
|
+
);
|
6685
6903
|
null !== request.trackedPostpones &&
|
6686
6904
|
(newBoundary.trackedContentKeyPath = keyPath);
|
6687
6905
|
var boundarySegment = createPendingSegment(
|
@@ -6726,20 +6944,23 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6726
6944
|
boundarySegment.status = 6;
|
6727
6945
|
try {
|
6728
6946
|
renderNode(request, task, fallback, -1),
|
6729
|
-
|
6730
|
-
boundarySegment.
|
6731
|
-
|
6947
|
+
pushSegmentFinale(
|
6948
|
+
boundarySegment.chunks,
|
6949
|
+
request.renderState,
|
6950
|
+
boundarySegment.lastPushedText,
|
6951
|
+
boundarySegment.textEmbedded
|
6952
|
+
),
|
6732
6953
|
(boundarySegment.status = COMPLETED),
|
6733
6954
|
finishedSegment(request, parentBoundary, boundarySegment);
|
6734
6955
|
} catch (thrownValue) {
|
6735
6956
|
throw (
|
6736
|
-
((boundarySegment.status = 12 === request.status ?
|
6957
|
+
((boundarySegment.status = 12 === request.status ? ABORTED : 4),
|
6737
6958
|
thrownValue)
|
6738
6959
|
);
|
6739
6960
|
} finally {
|
6740
6961
|
(task.blockedSegment = parentSegment),
|
6741
6962
|
(task.blockedPreamble = parentPreamble),
|
6742
|
-
(task.keyPath = prevKeyPath$jscomp$
|
6963
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
6743
6964
|
(task.formatContext = prevContext$jscomp$0);
|
6744
6965
|
}
|
6745
6966
|
var suspendedPrimaryTask = createRenderTask(
|
@@ -6759,6 +6980,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6759
6980
|
),
|
6760
6981
|
task.context,
|
6761
6982
|
task.treeContext,
|
6983
|
+
null,
|
6762
6984
|
task.componentStack,
|
6763
6985
|
emptyContextObject,
|
6764
6986
|
task.debugTask
|
@@ -6775,13 +6997,17 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6775
6997
|
request.resumableState,
|
6776
6998
|
prevContext$jscomp$0
|
6777
6999
|
);
|
7000
|
+
task.row = null;
|
6778
7001
|
contentRootSegment.status = 6;
|
6779
7002
|
try {
|
6780
7003
|
if (
|
6781
7004
|
(renderNode(request, task, content, -1),
|
6782
|
-
|
6783
|
-
contentRootSegment.
|
6784
|
-
|
7005
|
+
pushSegmentFinale(
|
7006
|
+
contentRootSegment.chunks,
|
7007
|
+
request.renderState,
|
7008
|
+
contentRootSegment.lastPushedText,
|
7009
|
+
contentRootSegment.textEmbedded
|
7010
|
+
),
|
6785
7011
|
(contentRootSegment.status = COMPLETED),
|
6786
7012
|
finishedSegment(request, newBoundary, contentRootSegment),
|
6787
7013
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
@@ -6790,6 +7016,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6790
7016
|
((newBoundary.status = COMPLETED),
|
6791
7017
|
!(500 < newBoundary.byteSize)))
|
6792
7018
|
) {
|
7019
|
+
null !== prevRow &&
|
7020
|
+
0 === --prevRow.pendingTasks &&
|
7021
|
+
finishSuspenseListRow(request, prevRow);
|
6793
7022
|
0 === request.pendingRootTasks &&
|
6794
7023
|
task.blockedPreamble &&
|
6795
7024
|
preparePreamble(request);
|
@@ -6798,7 +7027,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6798
7027
|
} catch (thrownValue$2) {
|
6799
7028
|
newBoundary.status = CLIENT_RENDERED;
|
6800
7029
|
if (12 === request.status) {
|
6801
|
-
contentRootSegment.status =
|
7030
|
+
contentRootSegment.status = ABORTED;
|
6802
7031
|
var error = request.fatalError;
|
6803
7032
|
} else (contentRootSegment.status = 4), (error = thrownValue$2);
|
6804
7033
|
var thrownInfo = getThrownInfo(task.componentStack);
|
@@ -6821,8 +7050,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6821
7050
|
(task.blockedPreamble = parentPreamble),
|
6822
7051
|
(task.hoistableState = parentHoistableState),
|
6823
7052
|
(task.blockedSegment = parentSegment),
|
6824
|
-
(task.keyPath = prevKeyPath$jscomp$
|
6825
|
-
(task.formatContext = prevContext$jscomp$0)
|
7053
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
7054
|
+
(task.formatContext = prevContext$jscomp$0),
|
7055
|
+
(task.row = prevRow);
|
6826
7056
|
}
|
6827
7057
|
var suspendedFallbackTask = createRenderTask(
|
6828
7058
|
request,
|
@@ -6841,6 +7071,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6841
7071
|
),
|
6842
7072
|
task.context,
|
6843
7073
|
task.treeContext,
|
7074
|
+
task.row,
|
6844
7075
|
task.componentStack,
|
6845
7076
|
emptyContextObject,
|
6846
7077
|
task.debugTask
|
@@ -6859,7 +7090,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6859
7090
|
for (var key in props)
|
6860
7091
|
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
6861
7092
|
} else propsWithoutRef = props;
|
6862
|
-
var children$jscomp$
|
7093
|
+
var children$jscomp$1 = renderWithHooks(
|
6863
7094
|
request,
|
6864
7095
|
task,
|
6865
7096
|
keyPath,
|
@@ -6871,7 +7102,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6871
7102
|
request,
|
6872
7103
|
task,
|
6873
7104
|
keyPath,
|
6874
|
-
children$jscomp$
|
7105
|
+
children$jscomp$1,
|
6875
7106
|
0 !== localIdCounter,
|
6876
7107
|
actionStateCounter,
|
6877
7108
|
actionStateMatchingIndex
|
@@ -6883,9 +7114,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6883
7114
|
case REACT_PROVIDER_TYPE:
|
6884
7115
|
case REACT_CONTEXT_TYPE:
|
6885
7116
|
var value$jscomp$0 = props.value,
|
6886
|
-
children$jscomp$
|
7117
|
+
children$jscomp$2 = props.children;
|
6887
7118
|
var prevSnapshot = task.context;
|
6888
|
-
var prevKeyPath$jscomp$
|
7119
|
+
var prevKeyPath$jscomp$5 = task.keyPath;
|
6889
7120
|
var prevValue = type._currentValue;
|
6890
7121
|
type._currentValue = value$jscomp$0;
|
6891
7122
|
void 0 !== type._currentRenderer &&
|
@@ -6906,7 +7137,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6906
7137
|
currentActiveSnapshot = newNode;
|
6907
7138
|
task.context = newNode;
|
6908
7139
|
task.keyPath = keyPath;
|
6909
|
-
renderNodeDestructive(request, task, children$jscomp$
|
7140
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
6910
7141
|
var prevSnapshot$jscomp$0 = currentActiveSnapshot;
|
6911
7142
|
if (null === prevSnapshot$jscomp$0)
|
6912
7143
|
throw Error(
|
@@ -6928,7 +7159,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6928
7159
|
var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
|
6929
7160
|
prevSnapshot$jscomp$0.parent);
|
6930
7161
|
task.context = JSCompiler_inline_result$jscomp$0;
|
6931
|
-
task.keyPath = prevKeyPath$jscomp$
|
7162
|
+
task.keyPath = prevKeyPath$jscomp$5;
|
6932
7163
|
prevSnapshot !== task.context &&
|
6933
7164
|
console.error(
|
6934
7165
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
@@ -6942,10 +7173,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6942
7173
|
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
6943
7174
|
);
|
6944
7175
|
var newChildren = render(context$jscomp$0._currentValue),
|
6945
|
-
prevKeyPath$jscomp$
|
7176
|
+
prevKeyPath$jscomp$6 = task.keyPath;
|
6946
7177
|
task.keyPath = keyPath;
|
6947
7178
|
renderNodeDestructive(request, task, newChildren, -1);
|
6948
|
-
task.keyPath = prevKeyPath$jscomp$
|
7179
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
6949
7180
|
return;
|
6950
7181
|
case REACT_LAZY_TYPE:
|
6951
7182
|
var Component = callLazyInitInDEV(type);
|
@@ -7074,6 +7305,7 @@ function replayElement(
|
|
7074
7305
|
node = null === node[4] ? null : node[4][3];
|
7075
7306
|
var prevKeyPath = task.keyPath,
|
7076
7307
|
prevContext = task.formatContext,
|
7308
|
+
prevRow = task.row,
|
7077
7309
|
previousReplaySet = task.replay,
|
7078
7310
|
parentBoundary = task.blockedBoundary,
|
7079
7311
|
parentHoistableState = task.hoistableState,
|
@@ -7084,11 +7316,18 @@ function replayElement(
|
|
7084
7316
|
task.formatContext.insertionMode < HTML_MODE
|
7085
7317
|
? createSuspenseBoundary(
|
7086
7318
|
request,
|
7319
|
+
task.row,
|
7087
7320
|
fallbackAbortSet,
|
7088
7321
|
createPreambleState(),
|
7089
7322
|
createPreambleState()
|
7090
7323
|
)
|
7091
|
-
: createSuspenseBoundary(
|
7324
|
+
: createSuspenseBoundary(
|
7325
|
+
request,
|
7326
|
+
task.row,
|
7327
|
+
fallbackAbortSet,
|
7328
|
+
null,
|
7329
|
+
null
|
7330
|
+
);
|
7092
7331
|
props.parentFlushed = !0;
|
7093
7332
|
props.rootSegmentID = name;
|
7094
7333
|
task.blockedBoundary = props;
|
@@ -7098,6 +7337,7 @@ function replayElement(
|
|
7098
7337
|
request.resumableState,
|
7099
7338
|
prevContext
|
7100
7339
|
);
|
7340
|
+
task.row = null;
|
7101
7341
|
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
7102
7342
|
try {
|
7103
7343
|
renderNode(request, task, content, -1);
|
@@ -7128,7 +7368,8 @@ function replayElement(
|
|
7128
7368
|
(task.hoistableState = parentHoistableState),
|
7129
7369
|
(task.replay = previousReplaySet),
|
7130
7370
|
(task.keyPath = prevKeyPath),
|
7131
|
-
(task.formatContext = prevContext)
|
7371
|
+
(task.formatContext = prevContext),
|
7372
|
+
(task.row = prevRow);
|
7132
7373
|
}
|
7133
7374
|
props = createReplayTask(
|
7134
7375
|
request,
|
@@ -7146,6 +7387,7 @@ function replayElement(
|
|
7146
7387
|
),
|
7147
7388
|
task.context,
|
7148
7389
|
task.treeContext,
|
7390
|
+
task.row,
|
7149
7391
|
task.componentStack,
|
7150
7392
|
emptyContextObject,
|
7151
7393
|
task.debugTask
|
@@ -7159,6 +7401,29 @@ function replayElement(
|
|
7159
7401
|
}
|
7160
7402
|
}
|
7161
7403
|
}
|
7404
|
+
function validateIterable(task, iterable, childIndex, iterator, iteratorFn) {
|
7405
|
+
if (iterator === iterable) {
|
7406
|
+
if (
|
7407
|
+
-1 !== childIndex ||
|
7408
|
+
null === task.componentStack ||
|
7409
|
+
"function" !== typeof task.componentStack.type ||
|
7410
|
+
"[object GeneratorFunction]" !==
|
7411
|
+
Object.prototype.toString.call(task.componentStack.type) ||
|
7412
|
+
"[object Generator]" !== Object.prototype.toString.call(iterator)
|
7413
|
+
)
|
7414
|
+
didWarnAboutGenerators ||
|
7415
|
+
console.error(
|
7416
|
+
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
7417
|
+
),
|
7418
|
+
(didWarnAboutGenerators = !0);
|
7419
|
+
} else
|
7420
|
+
iterable.entries !== iteratorFn ||
|
7421
|
+
didWarnAboutMaps ||
|
7422
|
+
(console.error(
|
7423
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
7424
|
+
),
|
7425
|
+
(didWarnAboutMaps = !0));
|
7426
|
+
}
|
7162
7427
|
function renderNodeDestructive(request, task, node, childIndex) {
|
7163
7428
|
null !== task.replay && "number" === typeof task.replay.slots
|
7164
7429
|
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
@@ -7235,52 +7500,27 @@ function retryNode(request, task) {
|
|
7235
7500
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
7236
7501
|
);
|
7237
7502
|
case REACT_LAZY_TYPE:
|
7238
|
-
|
7503
|
+
type = callLazyInitInDEV(node);
|
7239
7504
|
if (12 === request.status) throw null;
|
7240
|
-
renderNodeDestructive(request, task,
|
7505
|
+
renderNodeDestructive(request, task, type, childIndex);
|
7241
7506
|
return;
|
7242
7507
|
}
|
7243
7508
|
if (isArrayImpl(node)) {
|
7244
7509
|
renderChildrenArray(request, task, node, childIndex);
|
7245
7510
|
return;
|
7246
7511
|
}
|
7247
|
-
|
7248
|
-
|
7249
|
-
|
7250
|
-
|
7251
|
-
|
7252
|
-
|
7253
|
-
|
7254
|
-
|
7255
|
-
|
7256
|
-
|
7257
|
-
|
7258
|
-
"function" !== typeof task.componentStack.type ||
|
7259
|
-
"[object GeneratorFunction]" !==
|
7260
|
-
Object.prototype.toString.call(task.componentStack.type) ||
|
7261
|
-
"[object Generator]" !== Object.prototype.toString.call(type)
|
7262
|
-
)
|
7263
|
-
didWarnAboutGenerators ||
|
7264
|
-
console.error(
|
7265
|
-
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
7266
|
-
),
|
7267
|
-
(didWarnAboutGenerators = !0);
|
7268
|
-
} else
|
7269
|
-
node.entries !== key ||
|
7270
|
-
didWarnAboutMaps ||
|
7271
|
-
(console.error(
|
7272
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
7273
|
-
),
|
7274
|
-
(didWarnAboutMaps = !0));
|
7275
|
-
node = type.next();
|
7276
|
-
if (!node.done) {
|
7277
|
-
key = [];
|
7278
|
-
do key.push(node.value), (node = type.next());
|
7279
|
-
while (!node.done);
|
7280
|
-
renderChildrenArray(request, task, key, childIndex);
|
7512
|
+
if ((key = getIteratorFn(node)))
|
7513
|
+
if ((type = key.call(node))) {
|
7514
|
+
validateIterable(task, node, childIndex, type, key);
|
7515
|
+
node = type.next();
|
7516
|
+
if (!node.done) {
|
7517
|
+
key = [];
|
7518
|
+
do key.push(node.value), (node = type.next());
|
7519
|
+
while (!node.done);
|
7520
|
+
renderChildrenArray(request, task, key, childIndex);
|
7521
|
+
}
|
7522
|
+
return;
|
7281
7523
|
}
|
7282
|
-
return;
|
7283
|
-
}
|
7284
7524
|
if ("function" === typeof node.then)
|
7285
7525
|
return (
|
7286
7526
|
(task.thenableState = null),
|
@@ -7334,6 +7574,67 @@ function retryNode(request, task) {
|
|
7334
7574
|
));
|
7335
7575
|
}
|
7336
7576
|
}
|
7577
|
+
function warnForMissingKey(request, task, child) {
|
7578
|
+
if (
|
7579
|
+
null !== child &&
|
7580
|
+
"object" === typeof child &&
|
7581
|
+
(child.$$typeof === REACT_ELEMENT_TYPE ||
|
7582
|
+
child.$$typeof === REACT_PORTAL_TYPE) &&
|
7583
|
+
child._store &&
|
7584
|
+
((!child._store.validated && null == child.key) ||
|
7585
|
+
2 === child._store.validated)
|
7586
|
+
) {
|
7587
|
+
if ("object" !== typeof child._store)
|
7588
|
+
throw Error(
|
7589
|
+
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
7590
|
+
);
|
7591
|
+
child._store.validated = 1;
|
7592
|
+
var didWarnForKey = request.didWarnForKey;
|
7593
|
+
null == didWarnForKey &&
|
7594
|
+
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
7595
|
+
request = task.componentStack;
|
7596
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
7597
|
+
didWarnForKey.add(request);
|
7598
|
+
var componentName = getComponentNameFromType(child.type);
|
7599
|
+
didWarnForKey = child._owner;
|
7600
|
+
var parentOwner = request.owner;
|
7601
|
+
request = "";
|
7602
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
7603
|
+
var name = getComponentNameFromType(parentOwner.type);
|
7604
|
+
name && (request = "\n\nCheck the render method of `" + name + "`.");
|
7605
|
+
}
|
7606
|
+
request ||
|
7607
|
+
(componentName &&
|
7608
|
+
(request =
|
7609
|
+
"\n\nCheck the top-level render call using <" +
|
7610
|
+
componentName +
|
7611
|
+
">."));
|
7612
|
+
componentName = "";
|
7613
|
+
null != didWarnForKey &&
|
7614
|
+
parentOwner !== didWarnForKey &&
|
7615
|
+
((parentOwner = null),
|
7616
|
+
"undefined" !== typeof didWarnForKey.type
|
7617
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
7618
|
+
: "string" === typeof didWarnForKey.name &&
|
7619
|
+
(parentOwner = didWarnForKey.name),
|
7620
|
+
parentOwner &&
|
7621
|
+
(componentName = " It was passed a child from " + parentOwner + "."));
|
7622
|
+
didWarnForKey = task.componentStack;
|
7623
|
+
task.componentStack = {
|
7624
|
+
parent: task.componentStack,
|
7625
|
+
type: child.type,
|
7626
|
+
owner: child._owner,
|
7627
|
+
stack: child._debugStack
|
7628
|
+
};
|
7629
|
+
console.error(
|
7630
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
7631
|
+
request,
|
7632
|
+
componentName
|
7633
|
+
);
|
7634
|
+
task.componentStack = didWarnForKey;
|
7635
|
+
}
|
7636
|
+
}
|
7637
|
+
}
|
7337
7638
|
function renderChildrenArray(request, task, children, childIndex) {
|
7338
7639
|
var prevKeyPath = task.keyPath,
|
7339
7640
|
previousComponentStack = task.componentStack;
|
@@ -7420,75 +7721,11 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
7420
7721
|
task.debugTask = previousDebugTask;
|
7421
7722
|
return;
|
7422
7723
|
}
|
7423
|
-
for (j = 0; j < replayNodes; j++)
|
7424
|
-
childIndex = children[j]
|
7425
|
-
|
7426
|
-
|
7427
|
-
|
7428
|
-
if (
|
7429
|
-
null !== error &&
|
7430
|
-
"object" === typeof error &&
|
7431
|
-
(error.$$typeof === REACT_ELEMENT_TYPE ||
|
7432
|
-
error.$$typeof === REACT_PORTAL_TYPE) &&
|
7433
|
-
error._store &&
|
7434
|
-
((!error._store.validated && null == error.key) ||
|
7435
|
-
2 === error._store.validated)
|
7436
|
-
) {
|
7437
|
-
if ("object" !== typeof error._store)
|
7438
|
-
throw Error(
|
7439
|
-
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
7440
|
-
);
|
7441
|
-
error._store.validated = 1;
|
7442
|
-
thrownInfo = resumeSlots.didWarnForKey;
|
7443
|
-
null == thrownInfo &&
|
7444
|
-
(thrownInfo = resumeSlots.didWarnForKey = new WeakSet());
|
7445
|
-
resumeSlots = node.componentStack;
|
7446
|
-
if (null !== resumeSlots && !thrownInfo.has(resumeSlots)) {
|
7447
|
-
thrownInfo.add(resumeSlots);
|
7448
|
-
var componentName = getComponentNameFromType(error.type);
|
7449
|
-
thrownInfo = error._owner;
|
7450
|
-
var parentOwner = resumeSlots.owner;
|
7451
|
-
resumeSlots = "";
|
7452
|
-
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
7453
|
-
var name = getComponentNameFromType(parentOwner.type);
|
7454
|
-
name &&
|
7455
|
-
(resumeSlots = "\n\nCheck the render method of `" + name + "`.");
|
7456
|
-
}
|
7457
|
-
resumeSlots ||
|
7458
|
-
(componentName &&
|
7459
|
-
(resumeSlots =
|
7460
|
-
"\n\nCheck the top-level render call using <" +
|
7461
|
-
componentName +
|
7462
|
-
">."));
|
7463
|
-
componentName = "";
|
7464
|
-
null != thrownInfo &&
|
7465
|
-
parentOwner !== thrownInfo &&
|
7466
|
-
((parentOwner = null),
|
7467
|
-
"undefined" !== typeof thrownInfo.type
|
7468
|
-
? (parentOwner = getComponentNameFromType(thrownInfo.type))
|
7469
|
-
: "string" === typeof thrownInfo.name &&
|
7470
|
-
(parentOwner = thrownInfo.name),
|
7471
|
-
parentOwner &&
|
7472
|
-
(componentName =
|
7473
|
-
" It was passed a child from " + parentOwner + "."));
|
7474
|
-
thrownInfo = node.componentStack;
|
7475
|
-
node.componentStack = {
|
7476
|
-
parent: node.componentStack,
|
7477
|
-
type: error.type,
|
7478
|
-
owner: error._owner,
|
7479
|
-
stack: error._debugStack
|
7480
|
-
};
|
7481
|
-
console.error(
|
7482
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
7483
|
-
resumeSlots,
|
7484
|
-
componentName
|
7485
|
-
);
|
7486
|
-
node.componentStack = thrownInfo;
|
7487
|
-
}
|
7488
|
-
}
|
7489
|
-
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
7490
|
-
renderNode(request, task, childIndex, j);
|
7491
|
-
}
|
7724
|
+
for (j = 0; j < replayNodes; j++)
|
7725
|
+
(childIndex = children[j]),
|
7726
|
+
warnForMissingKey(request, task, childIndex),
|
7727
|
+
(task.treeContext = pushTreeContext(replay, replayNodes, j)),
|
7728
|
+
renderNode(request, task, childIndex, j);
|
7492
7729
|
task.treeContext = replay;
|
7493
7730
|
task.keyPath = prevKeyPath;
|
7494
7731
|
task.componentStack = previousComponentStack;
|
@@ -7517,6 +7754,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
7517
7754
|
task.formatContext,
|
7518
7755
|
task.context,
|
7519
7756
|
task.treeContext,
|
7757
|
+
task.row,
|
7520
7758
|
task.componentStack,
|
7521
7759
|
emptyContextObject,
|
7522
7760
|
task.debugTask
|
@@ -7548,6 +7786,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
7548
7786
|
task.formatContext,
|
7549
7787
|
task.context,
|
7550
7788
|
task.treeContext,
|
7789
|
+
task.row,
|
7551
7790
|
task.componentStack,
|
7552
7791
|
emptyContextObject,
|
7553
7792
|
task.debugTask
|
@@ -7654,9 +7893,11 @@ function renderNode(request, task, node, childIndex) {
|
|
7654
7893
|
throw node;
|
7655
7894
|
}
|
7656
7895
|
function abortTaskSoft(task) {
|
7657
|
-
var boundary = task.blockedBoundary
|
7658
|
-
|
7659
|
-
null !==
|
7896
|
+
var boundary = task.blockedBoundary,
|
7897
|
+
segment = task.blockedSegment;
|
7898
|
+
null !== segment &&
|
7899
|
+
((segment.status = ABORTED),
|
7900
|
+
finishedTask(this, boundary, task.row, segment));
|
7660
7901
|
}
|
7661
7902
|
function abortRemainingReplayNodes(
|
7662
7903
|
request$jscomp$0,
|
@@ -7690,6 +7931,7 @@ function abortRemainingReplayNodes(
|
|
7690
7931
|
wasAborted = aborted,
|
7691
7932
|
resumedBoundary = createSuspenseBoundary(
|
7692
7933
|
request,
|
7934
|
+
null,
|
7693
7935
|
new Set(),
|
7694
7936
|
null,
|
7695
7937
|
null
|
@@ -7733,8 +7975,12 @@ function abortTask(task, request, error) {
|
|
7733
7975
|
segment = task.blockedSegment;
|
7734
7976
|
if (null !== segment) {
|
7735
7977
|
if (6 === segment.status) return;
|
7736
|
-
segment.status =
|
7978
|
+
segment.status = ABORTED;
|
7737
7979
|
}
|
7980
|
+
segment = task.row;
|
7981
|
+
null !== segment &&
|
7982
|
+
0 === --segment.pendingTasks &&
|
7983
|
+
finishSuspenseListRow(request, segment);
|
7738
7984
|
segment = getThrownInfo(task.componentStack);
|
7739
7985
|
if (null === boundary) {
|
7740
7986
|
if (13 !== request.status && request.status !== CLOSED) {
|
@@ -7882,7 +8128,10 @@ function finishedSegment(request, boundary, segment) {
|
|
7882
8128
|
: (boundary.byteSize += segmentByteSize);
|
7883
8129
|
}
|
7884
8130
|
}
|
7885
|
-
function finishedTask(request, boundary, segment) {
|
8131
|
+
function finishedTask(request, boundary, row, segment) {
|
8132
|
+
null !== row &&
|
8133
|
+
0 === --row.pendingTasks &&
|
8134
|
+
finishSuspenseListRow(request, row);
|
7886
8135
|
request.allPendingTasks--;
|
7887
8136
|
if (null === boundary) {
|
7888
8137
|
if (null !== segment && segment.parentFlushed) {
|
@@ -7911,7 +8160,11 @@ function finishedTask(request, boundary, segment) {
|
|
7911
8160
|
abortTaskSoft,
|
7912
8161
|
request
|
7913
8162
|
),
|
7914
|
-
boundary.fallbackAbortableTasks.clear()
|
8163
|
+
boundary.fallbackAbortableTasks.clear(),
|
8164
|
+
(row = boundary.row),
|
8165
|
+
null !== row &&
|
8166
|
+
0 === --row.pendingTasks &&
|
8167
|
+
finishSuspenseListRow(request, row)),
|
7915
8168
|
0 === request.pendingRootTasks &&
|
7916
8169
|
null === request.trackedPostpones &&
|
7917
8170
|
null !== boundary.contentPreamble &&
|
@@ -7972,7 +8225,12 @@ function performWork(request$jscomp$2) {
|
|
7972
8225
|
);
|
7973
8226
|
request.replay.pendingTasks--;
|
7974
8227
|
request.abortSet.delete(request);
|
7975
|
-
finishedTask(
|
8228
|
+
finishedTask(
|
8229
|
+
request$jscomp$0,
|
8230
|
+
request.blockedBoundary,
|
8231
|
+
request.row,
|
8232
|
+
null
|
8233
|
+
);
|
7976
8234
|
} catch (thrownValue) {
|
7977
8235
|
resetHooksState();
|
7978
8236
|
var x =
|
@@ -8042,9 +8300,12 @@ function performWork(request$jscomp$2) {
|
|
8042
8300
|
chunkLength = request$jscomp$1.chunks.length;
|
8043
8301
|
try {
|
8044
8302
|
retryNode(request, errorDigest),
|
8045
|
-
|
8046
|
-
request$jscomp$1.
|
8047
|
-
request
|
8303
|
+
pushSegmentFinale(
|
8304
|
+
request$jscomp$1.chunks,
|
8305
|
+
request.renderState,
|
8306
|
+
request$jscomp$1.lastPushedText,
|
8307
|
+
request$jscomp$1.textEmbedded
|
8308
|
+
),
|
8048
8309
|
errorDigest.abortSet.delete(errorDigest),
|
8049
8310
|
(request$jscomp$1.status = COMPLETED),
|
8050
8311
|
finishedSegment(
|
@@ -8055,6 +8316,7 @@ function performWork(request$jscomp$2) {
|
|
8055
8316
|
finishedTask(
|
8056
8317
|
request,
|
8057
8318
|
errorDigest.blockedBoundary,
|
8319
|
+
errorDigest.row,
|
8058
8320
|
request$jscomp$1
|
8059
8321
|
);
|
8060
8322
|
} catch (thrownValue) {
|
@@ -8083,7 +8345,12 @@ function performWork(request$jscomp$2) {
|
|
8083
8345
|
errorDigest.abortSet.delete(errorDigest);
|
8084
8346
|
request$jscomp$1.status = 4;
|
8085
8347
|
var boundary$jscomp$0 = errorDigest.blockedBoundary,
|
8348
|
+
row = errorDigest.row,
|
8086
8349
|
debugTask = errorDigest.debugTask;
|
8350
|
+
null !== row &&
|
8351
|
+
0 === --row.pendingTasks &&
|
8352
|
+
finishSuspenseListRow(request, row);
|
8353
|
+
request.allPendingTasks--;
|
8087
8354
|
prevTaskInDEV = logRecoverableError(
|
8088
8355
|
request,
|
8089
8356
|
x$jscomp$0,
|
@@ -8109,7 +8376,6 @@ function performWork(request$jscomp$2) {
|
|
8109
8376
|
null === request.trackedPostpones &&
|
8110
8377
|
null !== boundary$jscomp$0.contentPreamble &&
|
8111
8378
|
preparePreamble(request)));
|
8112
|
-
request.allPendingTasks--;
|
8113
8379
|
0 === request.allPendingTasks && completeAll(request);
|
8114
8380
|
}
|
8115
8381
|
} finally {
|
@@ -8258,15 +8524,19 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
8258
8524
|
return flushSubtree(request, destination, segment, hoistableState);
|
8259
8525
|
boundary.parentFlushed = !0;
|
8260
8526
|
if (boundary.status === CLIENT_RENDERED) {
|
8261
|
-
var
|
8262
|
-
|
8527
|
+
var row = boundary.row;
|
8528
|
+
null !== row &&
|
8529
|
+
0 === --row.pendingTasks &&
|
8530
|
+
finishSuspenseListRow(request, row);
|
8531
|
+
row = boundary.errorDigest;
|
8532
|
+
var errorMessage = boundary.errorMessage,
|
8263
8533
|
errorStack = boundary.errorStack;
|
8264
8534
|
boundary = boundary.errorComponentStack;
|
8265
8535
|
destination.write(startClientRenderedSuspenseBoundary);
|
8266
8536
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
8267
|
-
|
8537
|
+
row &&
|
8268
8538
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
8269
|
-
writeChunk(destination, escapeTextForBrowser(
|
8539
|
+
writeChunk(destination, escapeTextForBrowser(row)),
|
8270
8540
|
writeChunk(
|
8271
8541
|
destination,
|
8272
8542
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
@@ -8330,6 +8600,11 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
8330
8600
|
((segment = boundary.contentState),
|
8331
8601
|
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
8332
8602
|
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
8603
|
+
segment = boundary.row;
|
8604
|
+
null !== segment &&
|
8605
|
+
500 < boundary.byteSize &&
|
8606
|
+
0 === --segment.pendingTasks &&
|
8607
|
+
finishSuspenseListRow(request, segment);
|
8333
8608
|
destination.write(startCompletedSuspenseBoundary);
|
8334
8609
|
segment = boundary.completedSegments;
|
8335
8610
|
if (1 !== segment.length)
|
@@ -8364,6 +8639,11 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
8364
8639
|
completedSegments[i]
|
8365
8640
|
);
|
8366
8641
|
completedSegments.length = 0;
|
8642
|
+
completedSegments = boundary.row;
|
8643
|
+
null !== completedSegments &&
|
8644
|
+
500 < boundary.byteSize &&
|
8645
|
+
0 === --completedSegments.pendingTasks &&
|
8646
|
+
finishSuspenseListRow(request, completedSegments);
|
8367
8647
|
writeHoistablesForBoundary(
|
8368
8648
|
destination,
|
8369
8649
|
boundary.contentState,
|
@@ -8789,15 +9069,15 @@ function abort(request, reason) {
|
|
8789
9069
|
fatalError(request, error$4, reason, null);
|
8790
9070
|
}
|
8791
9071
|
}
|
8792
|
-
var isomorphicReactPackageVersion$jscomp$
|
9072
|
+
var isomorphicReactPackageVersion$jscomp$inline_752 = React.version;
|
8793
9073
|
if (
|
8794
|
-
"19.2.0-canary-
|
8795
|
-
isomorphicReactPackageVersion$jscomp$
|
9074
|
+
"19.2.0-canary-c4676e72-20250520" !==
|
9075
|
+
isomorphicReactPackageVersion$jscomp$inline_752
|
8796
9076
|
)
|
8797
9077
|
throw Error(
|
8798
9078
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8799
|
-
(isomorphicReactPackageVersion$jscomp$
|
8800
|
-
"\n - react-dom: 19.2.0-canary-
|
9079
|
+
(isomorphicReactPackageVersion$jscomp$inline_752 +
|
9080
|
+
"\n - react-dom: 19.2.0-canary-c4676e72-20250520\nLearn more: https://react.dev/warnings/version-mismatch")
|
8801
9081
|
);
|
8802
9082
|
exports.renderToReadableStream = function (children, options) {
|
8803
9083
|
return new Promise(function (resolve, reject) {
|
@@ -8890,4 +9170,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
8890
9170
|
startWork(request$jscomp$0);
|
8891
9171
|
});
|
8892
9172
|
};
|
8893
|
-
exports.version = "19.2.0-canary-
|
9173
|
+
exports.version = "19.2.0-canary-c4676e72-20250520";
|