react-dom 19.2.0-canary-9784cb37-20250730 → 19.2.0-canary-bdb4a96f-20250801
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 +16 -12
- package/cjs/react-dom-server-legacy.browser.production.js +18 -12
- package/cjs/react-dom-server-legacy.node.development.js +16 -12
- package/cjs/react-dom-server-legacy.node.production.js +18 -12
- package/cjs/react-dom-server.browser.development.js +18 -14
- package/cjs/react-dom-server.browser.production.js +20 -14
- package/cjs/react-dom-server.bun.development.js +17 -14
- package/cjs/react-dom-server.bun.production.js +20 -14
- package/cjs/react-dom-server.edge.development.js +18 -14
- package/cjs/react-dom-server.edge.production.js +20 -14
- package/cjs/react-dom-server.node.development.js +18 -14
- package/cjs/react-dom-server.node.production.js +20 -14
- 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
|
@@ -4002,6 +4002,9 @@ function describeComponentStackByType(type) {
|
|
|
4002
4002
|
}
|
|
4003
4003
|
return "";
|
|
4004
4004
|
}
|
|
4005
|
+
function isEligibleForOutlining(request, boundary) {
|
|
4006
|
+
return 500 < boundary.byteSize && null === boundary.contentPreamble;
|
|
4007
|
+
}
|
|
4005
4008
|
function defaultErrorHandler(error) {
|
|
4006
4009
|
if (
|
|
4007
4010
|
"object" === typeof error &&
|
|
@@ -4413,7 +4416,7 @@ function tryToResolveTogetherRow(request, togetherRow) {
|
|
|
4413
4416
|
if (
|
|
4414
4417
|
1 !== rowBoundary.pendingTasks ||
|
|
4415
4418
|
rowBoundary.parentFlushed ||
|
|
4416
|
-
|
|
4419
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
4417
4420
|
) {
|
|
4418
4421
|
allCompleteAndInlinable = !1;
|
|
4419
4422
|
break;
|
|
@@ -5026,7 +5029,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5026
5029
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
5027
5030
|
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
|
5028
5031
|
) {
|
|
5029
|
-
if (
|
|
5032
|
+
if (
|
|
5033
|
+
((newBoundary.status = 1),
|
|
5034
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
5035
|
+
) {
|
|
5030
5036
|
null !== prevRow &&
|
|
5031
5037
|
0 === --prevRow.pendingTasks &&
|
|
5032
5038
|
finishSuspenseListRow(request, prevRow);
|
|
@@ -5957,7 +5963,7 @@ function finishedTask(request$jscomp$0, boundary, row, segment) {
|
|
|
5957
5963
|
(row = boundary.row),
|
|
5958
5964
|
null !== row &&
|
|
5959
5965
|
hoistHoistables(row.hoistables, boundary.contentState),
|
|
5960
|
-
|
|
5966
|
+
isEligibleForOutlining(request$jscomp$0, boundary) ||
|
|
5961
5967
|
(boundary.fallbackAbortableTasks.forEach(
|
|
5962
5968
|
abortTaskSoft,
|
|
5963
5969
|
request$jscomp$0
|
|
@@ -6270,6 +6276,7 @@ function preparePreambleFromSegment(
|
|
|
6270
6276
|
switch (boundary.status) {
|
|
6271
6277
|
case 1:
|
|
6272
6278
|
hoistPreambleState(request.renderState, preamble);
|
|
6279
|
+
request.byteSize += boundary.byteSize;
|
|
6273
6280
|
segment = boundary.completedSegments[0];
|
|
6274
6281
|
if (!segment) throw Error(formatProdErrorMessage(391));
|
|
6275
6282
|
return preparePreambleFromSubtree(
|
|
@@ -6299,17 +6306,16 @@ function preparePreamble(request) {
|
|
|
6299
6306
|
null === request.completedPreambleSegments
|
|
6300
6307
|
) {
|
|
6301
6308
|
var collectedPreambleSegments = [],
|
|
6309
|
+
originalRequestByteSize = request.byteSize,
|
|
6302
6310
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
6303
6311
|
request,
|
|
6304
6312
|
request.completedRootSegment,
|
|
6305
6313
|
collectedPreambleSegments
|
|
6306
6314
|
),
|
|
6307
6315
|
preamble = request.renderState.preamble;
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
(
|
|
6311
|
-
)
|
|
6312
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
6316
|
+
!1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
|
|
6317
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
6318
|
+
: (request.byteSize = originalRequestByteSize);
|
|
6313
6319
|
}
|
|
6314
6320
|
}
|
|
6315
6321
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -6386,7 +6392,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6386
6392
|
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
|
6387
6393
|
flushSubtree(request, destination, segment, hoistableState);
|
|
6388
6394
|
else if (
|
|
6389
|
-
|
|
6395
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6390
6396
|
flushedByteSize + boundary.byteSize > request.progressiveChunkSize
|
|
6391
6397
|
)
|
|
6392
6398
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
@@ -6402,7 +6408,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6402
6408
|
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
|
6403
6409
|
segment = boundary.row;
|
|
6404
6410
|
null !== segment &&
|
|
6405
|
-
|
|
6411
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6406
6412
|
0 === --segment.pendingTasks &&
|
|
6407
6413
|
finishSuspenseListRow(request, segment);
|
|
6408
6414
|
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
@@ -6438,7 +6444,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6438
6444
|
completedSegments.length = 0;
|
|
6439
6445
|
completedSegments = boundary.row;
|
|
6440
6446
|
null !== completedSegments &&
|
|
6441
|
-
|
|
6447
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6442
6448
|
0 === --completedSegments.pendingTasks &&
|
|
6443
6449
|
finishSuspenseListRow(request, completedSegments);
|
|
6444
6450
|
writeHoistablesForBoundary(
|
|
@@ -6869,12 +6875,12 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
|
6869
6875
|
}
|
|
6870
6876
|
function ensureCorrectIsomorphicReactVersion() {
|
|
6871
6877
|
var isomorphicReactPackageVersion = React.version;
|
|
6872
|
-
if ("19.2.0-canary-
|
|
6878
|
+
if ("19.2.0-canary-bdb4a96f-20250801" !== isomorphicReactPackageVersion)
|
|
6873
6879
|
throw Error(
|
|
6874
6880
|
formatProdErrorMessage(
|
|
6875
6881
|
527,
|
|
6876
6882
|
isomorphicReactPackageVersion,
|
|
6877
|
-
"19.2.0-canary-
|
|
6883
|
+
"19.2.0-canary-bdb4a96f-20250801"
|
|
6878
6884
|
)
|
|
6879
6885
|
);
|
|
6880
6886
|
}
|
|
@@ -7021,4 +7027,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7021
7027
|
startWork(request);
|
|
7022
7028
|
});
|
|
7023
7029
|
};
|
|
7024
|
-
exports.version = "19.2.0-canary-
|
|
7030
|
+
exports.version = "19.2.0-canary-bdb4a96f-20250801";
|
|
@@ -5636,6 +5636,9 @@ var CLIENT_RENDERED = 4,
|
|
|
5636
5636
|
ERRORED = 4,
|
|
5637
5637
|
POSTPONED = 5,
|
|
5638
5638
|
CLOSED = 14;
|
|
5639
|
+
function isEligibleForOutlining(request, boundary) {
|
|
5640
|
+
return 500 < boundary.byteSize && null === boundary.contentPreamble;
|
|
5641
|
+
}
|
|
5639
5642
|
function defaultErrorHandler(error) {
|
|
5640
5643
|
if (
|
|
5641
5644
|
"object" === typeof error &&
|
|
@@ -6160,7 +6163,7 @@ function tryToResolveTogetherRow(request, togetherRow) {
|
|
|
6160
6163
|
if (
|
|
6161
6164
|
1 !== rowBoundary.pendingTasks ||
|
|
6162
6165
|
rowBoundary.parentFlushed ||
|
|
6163
|
-
|
|
6166
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
6164
6167
|
) {
|
|
6165
6168
|
allCompleteAndInlinable = !1;
|
|
6166
6169
|
break;
|
|
@@ -7159,7 +7162,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7159
7162
|
) {
|
|
7160
7163
|
if (
|
|
7161
7164
|
((newBoundary.status = COMPLETED),
|
|
7162
|
-
!(
|
|
7165
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
7163
7166
|
) {
|
|
7164
7167
|
null !== prevRow$jscomp$0 &&
|
|
7165
7168
|
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
@@ -8347,7 +8350,7 @@ function finishedTask(request$jscomp$0, boundary$jscomp$0, row, segment) {
|
|
|
8347
8350
|
(row = boundary$jscomp$0.row),
|
|
8348
8351
|
null !== row &&
|
|
8349
8352
|
hoistHoistables(row.hoistables, boundary$jscomp$0.contentState),
|
|
8350
|
-
|
|
8353
|
+
isEligibleForOutlining(request$jscomp$0, boundary$jscomp$0) ||
|
|
8351
8354
|
(boundary$jscomp$0.fallbackAbortableTasks.forEach(
|
|
8352
8355
|
abortTaskSoft,
|
|
8353
8356
|
request$jscomp$0
|
|
@@ -8695,6 +8698,7 @@ function preparePreambleFromSegment(
|
|
|
8695
8698
|
switch (boundary.status) {
|
|
8696
8699
|
case COMPLETED:
|
|
8697
8700
|
hoistPreambleState(request.renderState, preamble);
|
|
8701
|
+
request.byteSize += boundary.byteSize;
|
|
8698
8702
|
segment = boundary.completedSegments[0];
|
|
8699
8703
|
if (!segment)
|
|
8700
8704
|
throw Error(
|
|
@@ -8727,17 +8731,16 @@ function preparePreamble(request) {
|
|
|
8727
8731
|
null === request.completedPreambleSegments
|
|
8728
8732
|
) {
|
|
8729
8733
|
var collectedPreambleSegments = [],
|
|
8734
|
+
originalRequestByteSize = request.byteSize,
|
|
8730
8735
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
8731
8736
|
request,
|
|
8732
8737
|
request.completedRootSegment,
|
|
8733
8738
|
collectedPreambleSegments
|
|
8734
8739
|
),
|
|
8735
8740
|
preamble = request.renderState.preamble;
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
(
|
|
8739
|
-
)
|
|
8740
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
8741
|
+
!1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
|
|
8742
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
8743
|
+
: (request.byteSize = originalRequestByteSize);
|
|
8741
8744
|
}
|
|
8742
8745
|
}
|
|
8743
8746
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -8840,7 +8843,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
8840
8843
|
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
|
8841
8844
|
flushSubtree(request, destination, segment, hoistableState);
|
|
8842
8845
|
else if (
|
|
8843
|
-
|
|
8846
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8844
8847
|
flushedByteSize + boundary.byteSize > request.progressiveChunkSize
|
|
8845
8848
|
)
|
|
8846
8849
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
@@ -8856,7 +8859,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
8856
8859
|
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
|
8857
8860
|
segment = boundary.row;
|
|
8858
8861
|
null !== segment &&
|
|
8859
|
-
|
|
8862
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8860
8863
|
0 === --segment.pendingTasks &&
|
|
8861
8864
|
finishSuspenseListRow(request, segment);
|
|
8862
8865
|
destination.write(startCompletedSuspenseBoundary);
|
|
@@ -8895,7 +8898,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8895
8898
|
completedSegments.length = 0;
|
|
8896
8899
|
completedSegments = boundary.row;
|
|
8897
8900
|
null !== completedSegments &&
|
|
8898
|
-
|
|
8901
|
+
isEligibleForOutlining(request, boundary) &&
|
|
8899
8902
|
0 === --completedSegments.pendingTasks &&
|
|
8900
8903
|
finishSuspenseListRow(request, completedSegments);
|
|
8901
8904
|
writeHoistablesForBoundary(
|
|
@@ -9363,13 +9366,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
|
9363
9366
|
}
|
|
9364
9367
|
var isomorphicReactPackageVersion$jscomp$inline_764 = React.version;
|
|
9365
9368
|
if (
|
|
9366
|
-
"19.2.0-canary-
|
|
9369
|
+
"19.2.0-canary-bdb4a96f-20250801" !==
|
|
9367
9370
|
isomorphicReactPackageVersion$jscomp$inline_764
|
|
9368
9371
|
)
|
|
9369
9372
|
throw Error(
|
|
9370
9373
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
9371
9374
|
(isomorphicReactPackageVersion$jscomp$inline_764 +
|
|
9372
|
-
"\n - react-dom: 19.2.0-canary-
|
|
9375
|
+
"\n - react-dom: 19.2.0-canary-bdb4a96f-20250801\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
9373
9376
|
);
|
|
9374
9377
|
exports.renderToReadableStream = function (children, options) {
|
|
9375
9378
|
return new Promise(function (resolve, reject) {
|
|
@@ -9462,4 +9465,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
9462
9465
|
startWork(request$jscomp$0);
|
|
9463
9466
|
});
|
|
9464
9467
|
};
|
|
9465
|
-
exports.version = "19.2.0-canary-
|
|
9468
|
+
exports.version = "19.2.0-canary-bdb4a96f-20250801";
|
|
@@ -3646,6 +3646,9 @@ function describeComponentStackByType(type) {
|
|
|
3646
3646
|
}
|
|
3647
3647
|
return "";
|
|
3648
3648
|
}
|
|
3649
|
+
function isEligibleForOutlining(request, boundary) {
|
|
3650
|
+
return 500 < boundary.byteSize && null === boundary.contentPreamble;
|
|
3651
|
+
}
|
|
3649
3652
|
function defaultErrorHandler(error) {
|
|
3650
3653
|
if (
|
|
3651
3654
|
"object" === typeof error &&
|
|
@@ -4023,7 +4026,7 @@ function tryToResolveTogetherRow(request, togetherRow) {
|
|
|
4023
4026
|
if (
|
|
4024
4027
|
1 !== rowBoundary.pendingTasks ||
|
|
4025
4028
|
rowBoundary.parentFlushed ||
|
|
4026
|
-
|
|
4029
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
4027
4030
|
) {
|
|
4028
4031
|
allCompleteAndInlinable = !1;
|
|
4029
4032
|
break;
|
|
@@ -4648,7 +4651,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
4648
4651
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
4649
4652
|
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
|
4650
4653
|
) {
|
|
4651
|
-
if (
|
|
4654
|
+
if (
|
|
4655
|
+
((newBoundary.status = 1),
|
|
4656
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
4657
|
+
) {
|
|
4652
4658
|
null !== prevRow &&
|
|
4653
4659
|
0 === --prevRow.pendingTasks &&
|
|
4654
4660
|
finishSuspenseListRow(request, prevRow);
|
|
@@ -5597,7 +5603,7 @@ function finishedTask(request$jscomp$0, boundary, row, segment) {
|
|
|
5597
5603
|
(row = boundary.row),
|
|
5598
5604
|
null !== row &&
|
|
5599
5605
|
hoistHoistables(row.hoistables, boundary.contentState),
|
|
5600
|
-
|
|
5606
|
+
isEligibleForOutlining(request$jscomp$0, boundary) ||
|
|
5601
5607
|
(boundary.fallbackAbortableTasks.forEach(
|
|
5602
5608
|
abortTaskSoft,
|
|
5603
5609
|
request$jscomp$0
|
|
@@ -5918,6 +5924,7 @@ function preparePreambleFromSegment(
|
|
|
5918
5924
|
switch (boundary.status) {
|
|
5919
5925
|
case 1:
|
|
5920
5926
|
hoistPreambleState(request.renderState, preamble);
|
|
5927
|
+
request.byteSize += boundary.byteSize;
|
|
5921
5928
|
segment = boundary.completedSegments[0];
|
|
5922
5929
|
if (!segment)
|
|
5923
5930
|
throw Error(
|
|
@@ -5950,17 +5957,16 @@ function preparePreamble(request) {
|
|
|
5950
5957
|
null === request.completedPreambleSegments
|
|
5951
5958
|
) {
|
|
5952
5959
|
var collectedPreambleSegments = [],
|
|
5960
|
+
originalRequestByteSize = request.byteSize,
|
|
5953
5961
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
5954
5962
|
request,
|
|
5955
5963
|
request.completedRootSegment,
|
|
5956
5964
|
collectedPreambleSegments
|
|
5957
5965
|
),
|
|
5958
5966
|
preamble = request.renderState.preamble;
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
(
|
|
5962
|
-
)
|
|
5963
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
5967
|
+
!1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
|
|
5968
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
5969
|
+
: (request.byteSize = originalRequestByteSize);
|
|
5964
5970
|
}
|
|
5965
5971
|
}
|
|
5966
5972
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -6035,7 +6041,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6035
6041
|
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
|
6036
6042
|
flushSubtree(request, destination, segment, hoistableState);
|
|
6037
6043
|
else if (
|
|
6038
|
-
|
|
6044
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6039
6045
|
flushedByteSize + boundary.byteSize > request.progressiveChunkSize
|
|
6040
6046
|
)
|
|
6041
6047
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
@@ -6051,7 +6057,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6051
6057
|
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
|
6052
6058
|
segment = boundary.row;
|
|
6053
6059
|
null !== segment &&
|
|
6054
|
-
|
|
6060
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6055
6061
|
0 === --segment.pendingTasks &&
|
|
6056
6062
|
finishSuspenseListRow(request, segment);
|
|
6057
6063
|
destination.write("\x3c!--$--\x3e");
|
|
@@ -6090,7 +6096,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6090
6096
|
completedSegments.length = 0;
|
|
6091
6097
|
completedSegments = boundary.row;
|
|
6092
6098
|
null !== completedSegments &&
|
|
6093
|
-
|
|
6099
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6094
6100
|
0 === --completedSegments.pendingTasks &&
|
|
6095
6101
|
finishSuspenseListRow(request, completedSegments);
|
|
6096
6102
|
writeHoistablesForBoundary(
|
|
@@ -6517,13 +6523,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
|
6517
6523
|
}
|
|
6518
6524
|
var isomorphicReactPackageVersion$jscomp$inline_816 = React.version;
|
|
6519
6525
|
if (
|
|
6520
|
-
"19.2.0-canary-
|
|
6526
|
+
"19.2.0-canary-bdb4a96f-20250801" !==
|
|
6521
6527
|
isomorphicReactPackageVersion$jscomp$inline_816
|
|
6522
6528
|
)
|
|
6523
6529
|
throw Error(
|
|
6524
6530
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
6525
6531
|
(isomorphicReactPackageVersion$jscomp$inline_816 +
|
|
6526
|
-
"\n - react-dom: 19.2.0-canary-
|
|
6532
|
+
"\n - react-dom: 19.2.0-canary-bdb4a96f-20250801\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
6527
6533
|
);
|
|
6528
6534
|
exports.renderToReadableStream = function (children, options) {
|
|
6529
6535
|
return new Promise(function (resolve, reject) {
|
|
@@ -6614,4 +6620,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
6614
6620
|
startWork(request);
|
|
6615
6621
|
});
|
|
6616
6622
|
};
|
|
6617
|
-
exports.version = "19.2.0-canary-
|
|
6623
|
+
exports.version = "19.2.0-canary-bdb4a96f-20250801";
|
|
@@ -4509,6 +4509,9 @@
|
|
|
4509
4509
|
}
|
|
4510
4510
|
return "";
|
|
4511
4511
|
}
|
|
4512
|
+
function isEligibleForOutlining(request, boundary) {
|
|
4513
|
+
return 500 < boundary.byteSize && null === boundary.contentPreamble;
|
|
4514
|
+
}
|
|
4512
4515
|
function defaultErrorHandler(error) {
|
|
4513
4516
|
if (
|
|
4514
4517
|
"object" === typeof error &&
|
|
@@ -5091,7 +5094,7 @@
|
|
|
5091
5094
|
if (
|
|
5092
5095
|
1 !== rowBoundary.pendingTasks ||
|
|
5093
5096
|
rowBoundary.parentFlushed ||
|
|
5094
|
-
|
|
5097
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
5095
5098
|
) {
|
|
5096
5099
|
allCompleteAndInlinable = !1;
|
|
5097
5100
|
break;
|
|
@@ -6124,7 +6127,7 @@
|
|
|
6124
6127
|
) {
|
|
6125
6128
|
if (
|
|
6126
6129
|
((newBoundary.status = COMPLETED),
|
|
6127
|
-
!(
|
|
6130
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
6128
6131
|
) {
|
|
6129
6132
|
null !== prevRow$jscomp$0 &&
|
|
6130
6133
|
0 === --prevRow$jscomp$0.pendingTasks &&
|
|
@@ -7349,7 +7352,7 @@
|
|
|
7349
7352
|
(row = boundary$jscomp$0.row),
|
|
7350
7353
|
null !== row &&
|
|
7351
7354
|
hoistHoistables(row.hoistables, boundary$jscomp$0.contentState),
|
|
7352
|
-
|
|
7355
|
+
isEligibleForOutlining(request$jscomp$0, boundary$jscomp$0) ||
|
|
7353
7356
|
(boundary$jscomp$0.fallbackAbortableTasks.forEach(
|
|
7354
7357
|
abortTaskSoft,
|
|
7355
7358
|
request$jscomp$0
|
|
@@ -7714,6 +7717,7 @@
|
|
|
7714
7717
|
switch (boundary.status) {
|
|
7715
7718
|
case COMPLETED:
|
|
7716
7719
|
hoistPreambleState(request.renderState, preamble);
|
|
7720
|
+
request.byteSize += boundary.byteSize;
|
|
7717
7721
|
segment = boundary.completedSegments[0];
|
|
7718
7722
|
if (!segment)
|
|
7719
7723
|
throw Error(
|
|
@@ -7746,17 +7750,17 @@
|
|
|
7746
7750
|
null === request.completedPreambleSegments
|
|
7747
7751
|
) {
|
|
7748
7752
|
var collectedPreambleSegments = [],
|
|
7753
|
+
originalRequestByteSize = request.byteSize,
|
|
7749
7754
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
7750
7755
|
request,
|
|
7751
7756
|
request.completedRootSegment,
|
|
7752
7757
|
collectedPreambleSegments
|
|
7753
7758
|
),
|
|
7754
7759
|
preamble = request.renderState.preamble;
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
(
|
|
7758
|
-
|
|
7759
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
7760
|
+
!1 === hasPendingPreambles ||
|
|
7761
|
+
(preamble.headChunks && preamble.bodyChunks)
|
|
7762
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
7763
|
+
: (request.byteSize = originalRequestByteSize);
|
|
7760
7764
|
}
|
|
7761
7765
|
}
|
|
7762
7766
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -7869,7 +7873,7 @@
|
|
|
7869
7873
|
hoistHoistables(hoistableState, boundary.fallbackState),
|
|
7870
7874
|
flushSubtree(request, destination, segment, hoistableState);
|
|
7871
7875
|
else if (
|
|
7872
|
-
|
|
7876
|
+
isEligibleForOutlining(request, boundary) &&
|
|
7873
7877
|
flushedByteSize + boundary.byteSize > request.progressiveChunkSize
|
|
7874
7878
|
)
|
|
7875
7879
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
@@ -7886,7 +7890,7 @@
|
|
|
7886
7890
|
hoistHoistables(hoistableState, boundary.contentState);
|
|
7887
7891
|
segment = boundary.row;
|
|
7888
7892
|
null !== segment &&
|
|
7889
|
-
|
|
7893
|
+
isEligibleForOutlining(request, boundary) &&
|
|
7890
7894
|
0 === --segment.pendingTasks &&
|
|
7891
7895
|
finishSuspenseListRow(request, segment);
|
|
7892
7896
|
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
@@ -7930,7 +7934,7 @@
|
|
|
7930
7934
|
completedSegments.length = 0;
|
|
7931
7935
|
completedSegments = boundary.row;
|
|
7932
7936
|
null !== completedSegments &&
|
|
7933
|
-
|
|
7937
|
+
isEligibleForOutlining(request, boundary) &&
|
|
7934
7938
|
0 === --completedSegments.pendingTasks &&
|
|
7935
7939
|
finishSuspenseListRow(request, completedSegments);
|
|
7936
7940
|
writeHoistablesForBoundary(
|
|
@@ -8504,11 +8508,11 @@
|
|
|
8504
8508
|
}
|
|
8505
8509
|
function ensureCorrectIsomorphicReactVersion() {
|
|
8506
8510
|
var isomorphicReactPackageVersion = React.version;
|
|
8507
|
-
if ("19.2.0-canary-
|
|
8511
|
+
if ("19.2.0-canary-bdb4a96f-20250801" !== isomorphicReactPackageVersion)
|
|
8508
8512
|
throw Error(
|
|
8509
8513
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
8510
8514
|
(isomorphicReactPackageVersion +
|
|
8511
|
-
"\n - react-dom: 19.2.0-canary-
|
|
8515
|
+
"\n - react-dom: 19.2.0-canary-bdb4a96f-20250801\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
8512
8516
|
);
|
|
8513
8517
|
}
|
|
8514
8518
|
var React = require("react"),
|
|
@@ -10194,5 +10198,5 @@
|
|
|
10194
10198
|
startWork(request);
|
|
10195
10199
|
});
|
|
10196
10200
|
};
|
|
10197
|
-
exports.version = "19.2.0-canary-
|
|
10201
|
+
exports.version = "19.2.0-canary-bdb4a96f-20250801";
|
|
10198
10202
|
})();
|
|
@@ -4046,6 +4046,9 @@ function describeComponentStackByType(type) {
|
|
|
4046
4046
|
}
|
|
4047
4047
|
return "";
|
|
4048
4048
|
}
|
|
4049
|
+
function isEligibleForOutlining(request, boundary) {
|
|
4050
|
+
return 500 < boundary.byteSize && null === boundary.contentPreamble;
|
|
4051
|
+
}
|
|
4049
4052
|
function defaultErrorHandler(error) {
|
|
4050
4053
|
if (
|
|
4051
4054
|
"object" === typeof error &&
|
|
@@ -4465,7 +4468,7 @@ function tryToResolveTogetherRow(request, togetherRow) {
|
|
|
4465
4468
|
if (
|
|
4466
4469
|
1 !== rowBoundary.pendingTasks ||
|
|
4467
4470
|
rowBoundary.parentFlushed ||
|
|
4468
|
-
|
|
4471
|
+
isEligibleForOutlining(request, rowBoundary)
|
|
4469
4472
|
) {
|
|
4470
4473
|
allCompleteAndInlinable = !1;
|
|
4471
4474
|
break;
|
|
@@ -5078,7 +5081,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
5078
5081
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
5079
5082
|
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
|
5080
5083
|
) {
|
|
5081
|
-
if (
|
|
5084
|
+
if (
|
|
5085
|
+
((newBoundary.status = 1),
|
|
5086
|
+
!isEligibleForOutlining(request, newBoundary))
|
|
5087
|
+
) {
|
|
5082
5088
|
null !== prevRow &&
|
|
5083
5089
|
0 === --prevRow.pendingTasks &&
|
|
5084
5090
|
finishSuspenseListRow(request, prevRow);
|
|
@@ -6027,7 +6033,7 @@ function finishedTask(request$jscomp$0, boundary, row, segment) {
|
|
|
6027
6033
|
(row = boundary.row),
|
|
6028
6034
|
null !== row &&
|
|
6029
6035
|
hoistHoistables(row.hoistables, boundary.contentState),
|
|
6030
|
-
|
|
6036
|
+
isEligibleForOutlining(request$jscomp$0, boundary) ||
|
|
6031
6037
|
(boundary.fallbackAbortableTasks.forEach(
|
|
6032
6038
|
abortTaskSoft,
|
|
6033
6039
|
request$jscomp$0
|
|
@@ -6345,6 +6351,7 @@ function preparePreambleFromSegment(
|
|
|
6345
6351
|
switch (boundary.status) {
|
|
6346
6352
|
case 1:
|
|
6347
6353
|
hoistPreambleState(request.renderState, preamble);
|
|
6354
|
+
request.byteSize += boundary.byteSize;
|
|
6348
6355
|
segment = boundary.completedSegments[0];
|
|
6349
6356
|
if (!segment)
|
|
6350
6357
|
throw Error(
|
|
@@ -6377,17 +6384,16 @@ function preparePreamble(request) {
|
|
|
6377
6384
|
null === request.completedPreambleSegments
|
|
6378
6385
|
) {
|
|
6379
6386
|
var collectedPreambleSegments = [],
|
|
6387
|
+
originalRequestByteSize = request.byteSize,
|
|
6380
6388
|
hasPendingPreambles = preparePreambleFromSegment(
|
|
6381
6389
|
request,
|
|
6382
6390
|
request.completedRootSegment,
|
|
6383
6391
|
collectedPreambleSegments
|
|
6384
6392
|
),
|
|
6385
6393
|
preamble = request.renderState.preamble;
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
(
|
|
6389
|
-
)
|
|
6390
|
-
request.completedPreambleSegments = collectedPreambleSegments;
|
|
6394
|
+
!1 === hasPendingPreambles || (preamble.headChunks && preamble.bodyChunks)
|
|
6395
|
+
? (request.completedPreambleSegments = collectedPreambleSegments)
|
|
6396
|
+
: (request.byteSize = originalRequestByteSize);
|
|
6391
6397
|
}
|
|
6392
6398
|
}
|
|
6393
6399
|
function flushSubtree(request, destination, segment, hoistableState) {
|
|
@@ -6466,7 +6472,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6466
6472
|
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
|
6467
6473
|
flushSubtree(request, destination, segment, hoistableState);
|
|
6468
6474
|
else if (
|
|
6469
|
-
|
|
6475
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6470
6476
|
flushedByteSize + boundary.byteSize > request.progressiveChunkSize
|
|
6471
6477
|
)
|
|
6472
6478
|
(boundary.rootSegmentID = request.nextSegmentId++),
|
|
@@ -6482,7 +6488,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
6482
6488
|
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
|
6483
6489
|
segment = boundary.row;
|
|
6484
6490
|
null !== segment &&
|
|
6485
|
-
|
|
6491
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6486
6492
|
0 === --segment.pendingTasks &&
|
|
6487
6493
|
finishSuspenseListRow(request, segment);
|
|
6488
6494
|
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
|
@@ -6521,7 +6527,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
6521
6527
|
completedSegments.length = 0;
|
|
6522
6528
|
completedSegments = boundary.row;
|
|
6523
6529
|
null !== completedSegments &&
|
|
6524
|
-
|
|
6530
|
+
isEligibleForOutlining(request, boundary) &&
|
|
6525
6531
|
0 === --completedSegments.pendingTasks &&
|
|
6526
6532
|
finishSuspenseListRow(request, completedSegments);
|
|
6527
6533
|
writeHoistablesForBoundary(
|
|
@@ -6967,11 +6973,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
|
6967
6973
|
}
|
|
6968
6974
|
function ensureCorrectIsomorphicReactVersion() {
|
|
6969
6975
|
var isomorphicReactPackageVersion = React.version;
|
|
6970
|
-
if ("19.2.0-canary-
|
|
6976
|
+
if ("19.2.0-canary-bdb4a96f-20250801" !== isomorphicReactPackageVersion)
|
|
6971
6977
|
throw Error(
|
|
6972
6978
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
6973
6979
|
(isomorphicReactPackageVersion +
|
|
6974
|
-
"\n - react-dom: 19.2.0-canary-
|
|
6980
|
+
"\n - react-dom: 19.2.0-canary-bdb4a96f-20250801\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
6975
6981
|
);
|
|
6976
6982
|
}
|
|
6977
6983
|
ensureCorrectIsomorphicReactVersion();
|
|
@@ -7117,4 +7123,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
|
7117
7123
|
startWork(request);
|
|
7118
7124
|
});
|
|
7119
7125
|
};
|
|
7120
|
-
exports.version = "19.2.0-canary-
|
|
7126
|
+
exports.version = "19.2.0-canary-bdb4a96f-20250801";
|