react-dom 19.2.0-canary-143d3e1b-20250425 → 19.2.0-canary-c498bfce-20250426
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 +11 -8
- package/cjs/react-dom-server-legacy.browser.production.js +34 -27
- package/cjs/react-dom-server-legacy.node.development.js +11 -8
- package/cjs/react-dom-server-legacy.node.production.js +34 -27
- package/cjs/react-dom-server.browser.development.js +35 -11
- package/cjs/react-dom-server.browser.production.js +49 -26
- package/cjs/react-dom-server.bun.development.js +35 -8
- package/cjs/react-dom-server.bun.production.js +49 -26
- package/cjs/react-dom-server.edge.development.js +35 -11
- package/cjs/react-dom-server.edge.production.js +49 -26
- package/cjs/react-dom-server.node.development.js +37 -11
- package/cjs/react-dom-server.node.production.js +51 -26
- 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
@@ -166,6 +166,9 @@ function stringToChunk(content) {
|
|
166
166
|
function stringToPrecomputedChunk(content) {
|
167
167
|
return textEncoder.encode(content);
|
168
168
|
}
|
169
|
+
function byteLengthOfChunk(chunk) {
|
170
|
+
return chunk.byteLength;
|
171
|
+
}
|
169
172
|
function closeWithError(destination, error) {
|
170
173
|
"function" === typeof destination.error
|
171
174
|
? destination.error(error)
|
@@ -3994,6 +3997,7 @@ function RequestInstance(
|
|
3994
3997
|
this.fatalError = null;
|
3995
3998
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
3996
3999
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
4000
|
+
this.byteSize = 0;
|
3997
4001
|
this.abortableTasks = abortSet;
|
3998
4002
|
this.pingedTasks = [];
|
3999
4003
|
this.clientRenderedBoundaries = [];
|
@@ -4616,11 +4620,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4616
4620
|
}
|
4617
4621
|
} else {
|
4618
4622
|
type = task.keyPath;
|
4619
|
-
|
4620
|
-
|
4623
|
+
ref = task.blockedBoundary;
|
4624
|
+
propName$33 = task.blockedPreamble;
|
4621
4625
|
var parentHoistableState = task.hoistableState;
|
4622
|
-
propName
|
4623
|
-
|
4626
|
+
propName = task.blockedSegment;
|
4627
|
+
var fallback = props.fallback;
|
4624
4628
|
props = props.children;
|
4625
4629
|
var fallbackAbortSet = new Set();
|
4626
4630
|
var newBoundary =
|
@@ -4636,14 +4640,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4636
4640
|
(newBoundary.trackedContentKeyPath = keyPath);
|
4637
4641
|
var boundarySegment = createPendingSegment(
|
4638
4642
|
request,
|
4639
|
-
propName
|
4643
|
+
propName.chunks.length,
|
4640
4644
|
newBoundary,
|
4641
4645
|
task.formatContext,
|
4642
4646
|
!1,
|
4643
4647
|
!1
|
4644
4648
|
);
|
4645
|
-
propName
|
4646
|
-
propName
|
4649
|
+
propName.children.push(boundarySegment);
|
4650
|
+
propName.lastPushedText = !1;
|
4647
4651
|
var contentRootSegment = createPendingSegment(
|
4648
4652
|
request,
|
4649
4653
|
0,
|
@@ -4663,19 +4667,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4663
4667
|
task.keyPath = newProps;
|
4664
4668
|
boundarySegment.status = 6;
|
4665
4669
|
try {
|
4666
|
-
renderNode(request, task,
|
4670
|
+
renderNode(request, task, fallback, -1),
|
4667
4671
|
boundarySegment.lastPushedText &&
|
4668
4672
|
boundarySegment.textEmbedded &&
|
4669
4673
|
boundarySegment.chunks.push(textSeparator),
|
4670
|
-
(boundarySegment.status = 1)
|
4674
|
+
(boundarySegment.status = 1),
|
4675
|
+
finishedSegment(request, ref, boundarySegment);
|
4671
4676
|
} catch (thrownValue) {
|
4672
4677
|
throw (
|
4673
4678
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
4674
4679
|
thrownValue)
|
4675
4680
|
);
|
4676
4681
|
} finally {
|
4677
|
-
(task.blockedSegment = propName
|
4678
|
-
(task.blockedPreamble =
|
4682
|
+
(task.blockedSegment = propName),
|
4683
|
+
(task.blockedPreamble = propName$33),
|
4679
4684
|
(task.keyPath = type);
|
4680
4685
|
}
|
4681
4686
|
task = createRenderTask(
|
@@ -4711,10 +4716,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4711
4716
|
contentRootSegment.textEmbedded &&
|
4712
4717
|
contentRootSegment.chunks.push(textSeparator),
|
4713
4718
|
(contentRootSegment.status = 1),
|
4719
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
4714
4720
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
4715
|
-
0 === newBoundary.pendingTasks &&
|
4721
|
+
0 === newBoundary.pendingTasks &&
|
4722
|
+
0 === newBoundary.status &&
|
4723
|
+
((newBoundary.status = 1),
|
4724
|
+
!(newBoundary.byteSize > request.progressiveChunkSize)))
|
4716
4725
|
) {
|
4717
|
-
newBoundary.status = 1;
|
4718
4726
|
0 === request.pendingRootTasks &&
|
4719
4727
|
task.blockedPreamble &&
|
4720
4728
|
preparePreamble(request);
|
@@ -4736,18 +4744,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4736
4744
|
(newBoundary.errorDigest = initialState),
|
4737
4745
|
untrackBoundary(request, newBoundary);
|
4738
4746
|
} finally {
|
4739
|
-
(task.blockedBoundary =
|
4740
|
-
(task.blockedPreamble =
|
4747
|
+
(task.blockedBoundary = ref),
|
4748
|
+
(task.blockedPreamble = propName$33),
|
4741
4749
|
(task.hoistableState = parentHoistableState),
|
4742
|
-
(task.blockedSegment = propName
|
4750
|
+
(task.blockedSegment = propName),
|
4743
4751
|
(task.keyPath = type);
|
4744
4752
|
}
|
4745
4753
|
task = createRenderTask(
|
4746
4754
|
request,
|
4747
4755
|
null,
|
4748
|
-
|
4756
|
+
fallback,
|
4749
4757
|
-1,
|
4750
|
-
|
4758
|
+
ref,
|
4751
4759
|
boundarySegment,
|
4752
4760
|
newBoundary.fallbackPreamble,
|
4753
4761
|
newBoundary.fallbackState,
|
@@ -4769,9 +4777,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4769
4777
|
switch (type.$$typeof) {
|
4770
4778
|
case REACT_FORWARD_REF_TYPE:
|
4771
4779
|
if ("ref" in props)
|
4772
|
-
for (
|
4773
|
-
"ref" !==
|
4774
|
-
(newProps[newBoundary] = props[newBoundary]);
|
4780
|
+
for (fallback in ((newProps = {}), props))
|
4781
|
+
"ref" !== fallback && (newProps[fallback] = props[fallback]);
|
4775
4782
|
else newProps = props;
|
4776
4783
|
type = renderWithHooks(
|
4777
4784
|
request,
|
@@ -4861,6 +4868,7 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
4861
4868
|
(task.blockedSegment = resumedSegment),
|
4862
4869
|
renderNode(request, task, node, childIndex),
|
4863
4870
|
(resumedSegment.status = 1),
|
4871
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
4864
4872
|
null === blockedBoundary
|
4865
4873
|
? (request.completedRootSegment = resumedSegment)
|
4866
4874
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
@@ -5565,6 +5573,16 @@ function queueCompletedSegment(boundary, segment) {
|
|
5565
5573
|
1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
|
5566
5574
|
} else boundary.completedSegments.push(segment);
|
5567
5575
|
}
|
5576
|
+
function finishedSegment(request, boundary, segment) {
|
5577
|
+
if (null !== byteLengthOfChunk) {
|
5578
|
+
segment = segment.chunks;
|
5579
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
5580
|
+
segmentByteSize += segment[i].byteLength;
|
5581
|
+
null === boundary
|
5582
|
+
? (request.byteSize += segmentByteSize)
|
5583
|
+
: (boundary.byteSize += segmentByteSize);
|
5584
|
+
}
|
5585
|
+
}
|
5568
5586
|
function finishedTask(request, boundary, segment) {
|
5569
5587
|
if (null === boundary) {
|
5570
5588
|
if (null !== segment && segment.parentFlushed) {
|
@@ -5588,8 +5606,12 @@ function finishedTask(request, boundary, segment) {
|
|
5588
5606
|
boundary.parentFlushed &&
|
5589
5607
|
request.completedBoundaries.push(boundary),
|
5590
5608
|
1 === boundary.status &&
|
5591
|
-
(boundary.
|
5592
|
-
|
5609
|
+
(boundary.byteSize > request.progressiveChunkSize ||
|
5610
|
+
(boundary.fallbackAbortableTasks.forEach(
|
5611
|
+
abortTaskSoft,
|
5612
|
+
request
|
5613
|
+
),
|
5614
|
+
boundary.fallbackAbortableTasks.clear()),
|
5593
5615
|
0 === request.pendingRootTasks &&
|
5594
5616
|
null === request.trackedPostpones &&
|
5595
5617
|
null !== boundary.contentPreamble &&
|
@@ -5712,6 +5734,7 @@ function performWork(request$jscomp$2) {
|
|
5712
5734
|
request$jscomp$1.chunks.push(textSeparator),
|
5713
5735
|
task.abortSet.delete(task),
|
5714
5736
|
(request$jscomp$1.status = 1),
|
5737
|
+
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
5715
5738
|
finishedTask(request, task.blockedBoundary, request$jscomp$1);
|
5716
5739
|
} catch (thrownValue) {
|
5717
5740
|
resetHooksState();
|
@@ -6383,11 +6406,11 @@ function abort(request, reason) {
|
|
6383
6406
|
}
|
6384
6407
|
function ensureCorrectIsomorphicReactVersion() {
|
6385
6408
|
var isomorphicReactPackageVersion = React.version;
|
6386
|
-
if ("19.2.0-canary-
|
6409
|
+
if ("19.2.0-canary-c498bfce-20250426" !== isomorphicReactPackageVersion)
|
6387
6410
|
throw Error(
|
6388
6411
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6389
6412
|
(isomorphicReactPackageVersion +
|
6390
|
-
"\n - react-dom: 19.2.0-canary-
|
6413
|
+
"\n - react-dom: 19.2.0-canary-c498bfce-20250426\nLearn more: https://react.dev/warnings/version-mismatch")
|
6391
6414
|
);
|
6392
6415
|
}
|
6393
6416
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6533,4 +6556,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6533
6556
|
startWork(request);
|
6534
6557
|
});
|
6535
6558
|
};
|
6536
|
-
exports.version = "19.2.0-canary-
|
6559
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
@@ -267,6 +267,11 @@
|
|
267
267
|
);
|
268
268
|
return content;
|
269
269
|
}
|
270
|
+
function byteLengthOfChunk(chunk) {
|
271
|
+
return "string" === typeof chunk
|
272
|
+
? Buffer.byteLength(chunk, "utf8")
|
273
|
+
: chunk.byteLength;
|
274
|
+
}
|
270
275
|
function typeName(value) {
|
271
276
|
return (
|
272
277
|
("function" === typeof Symbol &&
|
@@ -4375,6 +4380,7 @@
|
|
4375
4380
|
this.fatalError = null;
|
4376
4381
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
4377
4382
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
4383
|
+
this.byteSize = 0;
|
4378
4384
|
this.abortableTasks = abortSet;
|
4379
4385
|
this.pingedTasks = [];
|
4380
4386
|
this.clientRenderedBoundaries = [];
|
@@ -5550,7 +5556,8 @@
|
|
5550
5556
|
boundarySegment.lastPushedText &&
|
5551
5557
|
boundarySegment.textEmbedded &&
|
5552
5558
|
boundarySegment.chunks.push(textSeparator),
|
5553
|
-
(boundarySegment.status = COMPLETED)
|
5559
|
+
(boundarySegment.status = COMPLETED),
|
5560
|
+
finishedSegment(request, parentBoundary, boundarySegment);
|
5554
5561
|
} catch (thrownValue) {
|
5555
5562
|
throw (
|
5556
5563
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
@@ -5596,11 +5603,13 @@
|
|
5596
5603
|
contentRootSegment.textEmbedded &&
|
5597
5604
|
contentRootSegment.chunks.push(textSeparator),
|
5598
5605
|
(contentRootSegment.status = COMPLETED),
|
5606
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
5599
5607
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
5600
5608
|
0 === newBoundary.pendingTasks &&
|
5601
|
-
newBoundary.status === PENDING
|
5609
|
+
newBoundary.status === PENDING &&
|
5610
|
+
((newBoundary.status = COMPLETED),
|
5611
|
+
!(newBoundary.byteSize > request.progressiveChunkSize)))
|
5602
5612
|
) {
|
5603
|
-
newBoundary.status = COMPLETED;
|
5604
5613
|
0 === request.pendingRootTasks &&
|
5605
5614
|
task.blockedPreamble &&
|
5606
5615
|
preparePreamble(request);
|
@@ -5795,6 +5804,7 @@
|
|
5795
5804
|
(task.blockedSegment = resumedSegment),
|
5796
5805
|
renderNode(request, task, node, childIndex),
|
5797
5806
|
(resumedSegment.status = COMPLETED),
|
5807
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
5798
5808
|
null === blockedBoundary
|
5799
5809
|
? (request.completedRootSegment = resumedSegment)
|
5800
5810
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
@@ -6711,6 +6721,16 @@
|
|
6711
6721
|
queueCompletedSegment(boundary, childSegment);
|
6712
6722
|
} else boundary.completedSegments.push(segment);
|
6713
6723
|
}
|
6724
|
+
function finishedSegment(request, boundary, segment) {
|
6725
|
+
if (null !== byteLengthOfChunk) {
|
6726
|
+
segment = segment.chunks;
|
6727
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
6728
|
+
segmentByteSize += byteLengthOfChunk(segment[i]);
|
6729
|
+
null === boundary
|
6730
|
+
? (request.byteSize += segmentByteSize)
|
6731
|
+
: (boundary.byteSize += segmentByteSize);
|
6732
|
+
}
|
6733
|
+
}
|
6714
6734
|
function finishedTask(request, boundary, segment) {
|
6715
6735
|
if (null === boundary) {
|
6716
6736
|
if (null !== segment && segment.parentFlushed) {
|
@@ -6734,11 +6754,12 @@
|
|
6734
6754
|
boundary.parentFlushed &&
|
6735
6755
|
request.completedBoundaries.push(boundary),
|
6736
6756
|
boundary.status === COMPLETED &&
|
6737
|
-
(boundary.
|
6738
|
-
|
6739
|
-
|
6740
|
-
|
6741
|
-
|
6757
|
+
(boundary.byteSize > request.progressiveChunkSize ||
|
6758
|
+
(boundary.fallbackAbortableTasks.forEach(
|
6759
|
+
abortTaskSoft,
|
6760
|
+
request
|
6761
|
+
),
|
6762
|
+
boundary.fallbackAbortableTasks.clear()),
|
6742
6763
|
0 === request.pendingRootTasks &&
|
6743
6764
|
null === request.trackedPostpones &&
|
6744
6765
|
null !== boundary.contentPreamble &&
|
@@ -6878,6 +6899,11 @@
|
|
6878
6899
|
request$jscomp$1.chunks.push(textSeparator),
|
6879
6900
|
errorDigest.abortSet.delete(errorDigest),
|
6880
6901
|
(request$jscomp$1.status = COMPLETED),
|
6902
|
+
finishedSegment(
|
6903
|
+
request,
|
6904
|
+
errorDigest.blockedBoundary,
|
6905
|
+
request$jscomp$1
|
6906
|
+
),
|
6881
6907
|
finishedTask(
|
6882
6908
|
request,
|
6883
6909
|
errorDigest.blockedBoundary,
|
@@ -7709,11 +7735,11 @@
|
|
7709
7735
|
}
|
7710
7736
|
function ensureCorrectIsomorphicReactVersion() {
|
7711
7737
|
var isomorphicReactPackageVersion = React.version;
|
7712
|
-
if ("19.2.0-canary-
|
7738
|
+
if ("19.2.0-canary-c498bfce-20250426" !== isomorphicReactPackageVersion)
|
7713
7739
|
throw Error(
|
7714
7740
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7715
7741
|
(isomorphicReactPackageVersion +
|
7716
|
-
"\n - react-dom: 19.2.0-canary-
|
7742
|
+
"\n - react-dom: 19.2.0-canary-c498bfce-20250426\nLearn more: https://react.dev/warnings/version-mismatch")
|
7717
7743
|
);
|
7718
7744
|
}
|
7719
7745
|
function createDrainHandler(destination, request) {
|
@@ -9390,5 +9416,5 @@
|
|
9390
9416
|
}
|
9391
9417
|
};
|
9392
9418
|
};
|
9393
|
-
exports.version = "19.2.0-canary-
|
9419
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
9394
9420
|
})();
|
@@ -123,6 +123,11 @@ var textEncoder = new util.TextEncoder();
|
|
123
123
|
function stringToPrecomputedChunk(content) {
|
124
124
|
return textEncoder.encode(content);
|
125
125
|
}
|
126
|
+
function byteLengthOfChunk(chunk) {
|
127
|
+
return "string" === typeof chunk
|
128
|
+
? Buffer.byteLength(chunk, "utf8")
|
129
|
+
: chunk.byteLength;
|
130
|
+
}
|
126
131
|
var assign = Object.assign,
|
127
132
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
128
133
|
VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
@@ -3898,6 +3903,7 @@ function RequestInstance(
|
|
3898
3903
|
this.fatalError = null;
|
3899
3904
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
3900
3905
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
3906
|
+
this.byteSize = 0;
|
3901
3907
|
this.abortableTasks = abortSet;
|
3902
3908
|
this.pingedTasks = [];
|
3903
3909
|
this.clientRenderedBoundaries = [];
|
@@ -4517,11 +4523,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4517
4523
|
}
|
4518
4524
|
} else {
|
4519
4525
|
type = task.keyPath;
|
4520
|
-
|
4521
|
-
|
4526
|
+
ref = task.blockedBoundary;
|
4527
|
+
propName$33 = task.blockedPreamble;
|
4522
4528
|
var parentHoistableState = task.hoistableState;
|
4523
|
-
propName
|
4524
|
-
|
4529
|
+
propName = task.blockedSegment;
|
4530
|
+
var fallback = props.fallback;
|
4525
4531
|
props = props.children;
|
4526
4532
|
var fallbackAbortSet = new Set();
|
4527
4533
|
var newBoundary =
|
@@ -4537,14 +4543,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4537
4543
|
(newBoundary.trackedContentKeyPath = keyPath);
|
4538
4544
|
var boundarySegment = createPendingSegment(
|
4539
4545
|
request,
|
4540
|
-
propName
|
4546
|
+
propName.chunks.length,
|
4541
4547
|
newBoundary,
|
4542
4548
|
task.formatContext,
|
4543
4549
|
!1,
|
4544
4550
|
!1
|
4545
4551
|
);
|
4546
|
-
propName
|
4547
|
-
propName
|
4552
|
+
propName.children.push(boundarySegment);
|
4553
|
+
propName.lastPushedText = !1;
|
4548
4554
|
var contentRootSegment = createPendingSegment(
|
4549
4555
|
request,
|
4550
4556
|
0,
|
@@ -4564,19 +4570,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4564
4570
|
task.keyPath = newProps;
|
4565
4571
|
boundarySegment.status = 6;
|
4566
4572
|
try {
|
4567
|
-
renderNode(request, task,
|
4573
|
+
renderNode(request, task, fallback, -1),
|
4568
4574
|
boundarySegment.lastPushedText &&
|
4569
4575
|
boundarySegment.textEmbedded &&
|
4570
4576
|
boundarySegment.chunks.push(textSeparator),
|
4571
|
-
(boundarySegment.status = 1)
|
4577
|
+
(boundarySegment.status = 1),
|
4578
|
+
finishedSegment(request, ref, boundarySegment);
|
4572
4579
|
} catch (thrownValue) {
|
4573
4580
|
throw (
|
4574
4581
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
4575
4582
|
thrownValue)
|
4576
4583
|
);
|
4577
4584
|
} finally {
|
4578
|
-
(task.blockedSegment = propName
|
4579
|
-
(task.blockedPreamble =
|
4585
|
+
(task.blockedSegment = propName),
|
4586
|
+
(task.blockedPreamble = propName$33),
|
4580
4587
|
(task.keyPath = type);
|
4581
4588
|
}
|
4582
4589
|
task = createRenderTask(
|
@@ -4612,10 +4619,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4612
4619
|
contentRootSegment.textEmbedded &&
|
4613
4620
|
contentRootSegment.chunks.push(textSeparator),
|
4614
4621
|
(contentRootSegment.status = 1),
|
4622
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
4615
4623
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
4616
|
-
0 === newBoundary.pendingTasks &&
|
4624
|
+
0 === newBoundary.pendingTasks &&
|
4625
|
+
0 === newBoundary.status &&
|
4626
|
+
((newBoundary.status = 1),
|
4627
|
+
!(newBoundary.byteSize > request.progressiveChunkSize)))
|
4617
4628
|
) {
|
4618
|
-
newBoundary.status = 1;
|
4619
4629
|
0 === request.pendingRootTasks &&
|
4620
4630
|
task.blockedPreamble &&
|
4621
4631
|
preparePreamble(request);
|
@@ -4637,18 +4647,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4637
4647
|
(newBoundary.errorDigest = initialState),
|
4638
4648
|
untrackBoundary(request, newBoundary);
|
4639
4649
|
} finally {
|
4640
|
-
(task.blockedBoundary =
|
4641
|
-
(task.blockedPreamble =
|
4650
|
+
(task.blockedBoundary = ref),
|
4651
|
+
(task.blockedPreamble = propName$33),
|
4642
4652
|
(task.hoistableState = parentHoistableState),
|
4643
|
-
(task.blockedSegment = propName
|
4653
|
+
(task.blockedSegment = propName),
|
4644
4654
|
(task.keyPath = type);
|
4645
4655
|
}
|
4646
4656
|
task = createRenderTask(
|
4647
4657
|
request,
|
4648
4658
|
null,
|
4649
|
-
|
4659
|
+
fallback,
|
4650
4660
|
-1,
|
4651
|
-
|
4661
|
+
ref,
|
4652
4662
|
boundarySegment,
|
4653
4663
|
newBoundary.fallbackPreamble,
|
4654
4664
|
newBoundary.fallbackState,
|
@@ -4670,9 +4680,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4670
4680
|
switch (type.$$typeof) {
|
4671
4681
|
case REACT_FORWARD_REF_TYPE:
|
4672
4682
|
if ("ref" in props)
|
4673
|
-
for (
|
4674
|
-
"ref" !==
|
4675
|
-
(newProps[newBoundary] = props[newBoundary]);
|
4683
|
+
for (fallback in ((newProps = {}), props))
|
4684
|
+
"ref" !== fallback && (newProps[fallback] = props[fallback]);
|
4676
4685
|
else newProps = props;
|
4677
4686
|
type = renderWithHooks(
|
4678
4687
|
request,
|
@@ -4762,6 +4771,7 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
4762
4771
|
(task.blockedSegment = resumedSegment),
|
4763
4772
|
renderNode(request, task, node, childIndex),
|
4764
4773
|
(resumedSegment.status = 1),
|
4774
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
4765
4775
|
null === blockedBoundary
|
4766
4776
|
? (request.completedRootSegment = resumedSegment)
|
4767
4777
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
@@ -5466,6 +5476,16 @@ function queueCompletedSegment(boundary, segment) {
|
|
5466
5476
|
1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
|
5467
5477
|
} else boundary.completedSegments.push(segment);
|
5468
5478
|
}
|
5479
|
+
function finishedSegment(request, boundary, segment) {
|
5480
|
+
if (null !== byteLengthOfChunk) {
|
5481
|
+
segment = segment.chunks;
|
5482
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
5483
|
+
segmentByteSize += byteLengthOfChunk(segment[i]);
|
5484
|
+
null === boundary
|
5485
|
+
? (request.byteSize += segmentByteSize)
|
5486
|
+
: (boundary.byteSize += segmentByteSize);
|
5487
|
+
}
|
5488
|
+
}
|
5469
5489
|
function finishedTask(request, boundary, segment) {
|
5470
5490
|
if (null === boundary) {
|
5471
5491
|
if (null !== segment && segment.parentFlushed) {
|
@@ -5489,8 +5509,12 @@ function finishedTask(request, boundary, segment) {
|
|
5489
5509
|
boundary.parentFlushed &&
|
5490
5510
|
request.completedBoundaries.push(boundary),
|
5491
5511
|
1 === boundary.status &&
|
5492
|
-
(boundary.
|
5493
|
-
|
5512
|
+
(boundary.byteSize > request.progressiveChunkSize ||
|
5513
|
+
(boundary.fallbackAbortableTasks.forEach(
|
5514
|
+
abortTaskSoft,
|
5515
|
+
request
|
5516
|
+
),
|
5517
|
+
boundary.fallbackAbortableTasks.clear()),
|
5494
5518
|
0 === request.pendingRootTasks &&
|
5495
5519
|
null === request.trackedPostpones &&
|
5496
5520
|
null !== boundary.contentPreamble &&
|
@@ -5613,6 +5637,7 @@ function performWork(request$jscomp$2) {
|
|
5613
5637
|
request$jscomp$1.chunks.push(textSeparator),
|
5614
5638
|
task.abortSet.delete(task),
|
5615
5639
|
(request$jscomp$1.status = 1),
|
5640
|
+
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
5616
5641
|
finishedTask(request, task.blockedBoundary, request$jscomp$1);
|
5617
5642
|
} catch (thrownValue) {
|
5618
5643
|
resetHooksState();
|
@@ -6279,11 +6304,11 @@ function abort(request, reason) {
|
|
6279
6304
|
}
|
6280
6305
|
function ensureCorrectIsomorphicReactVersion() {
|
6281
6306
|
var isomorphicReactPackageVersion = React.version;
|
6282
|
-
if ("19.2.0-canary-
|
6307
|
+
if ("19.2.0-canary-c498bfce-20250426" !== isomorphicReactPackageVersion)
|
6283
6308
|
throw Error(
|
6284
6309
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6285
6310
|
(isomorphicReactPackageVersion +
|
6286
|
-
"\n - react-dom: 19.2.0-canary-
|
6311
|
+
"\n - react-dom: 19.2.0-canary-c498bfce-20250426\nLearn more: https://react.dev/warnings/version-mismatch")
|
6287
6312
|
);
|
6288
6313
|
}
|
6289
6314
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6432,4 +6457,4 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6432
6457
|
}
|
6433
6458
|
};
|
6434
6459
|
};
|
6435
|
-
exports.version = "19.2.0-canary-
|
6460
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
@@ -416,7 +416,7 @@
|
|
416
416
|
exports.useFormStatus = function () {
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
418
418
|
};
|
419
|
-
exports.version = "19.2.0-canary-
|
419
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
420
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
421
421
|
"function" ===
|
422
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
207
207
|
exports.useFormStatus = function () {
|
208
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
209
209
|
};
|
210
|
-
exports.version = "19.2.0-canary-
|
210
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dom",
|
3
|
-
"version": "19.2.0-canary-
|
3
|
+
"version": "19.2.0-canary-c498bfce-20250426",
|
4
4
|
"description": "React package for working with the DOM.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
},
|
18
18
|
"homepage": "https://react.dev/",
|
19
19
|
"dependencies": {
|
20
|
-
"scheduler": "0.27.0-canary-
|
20
|
+
"scheduler": "0.27.0-canary-c498bfce-20250426"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.2.0-canary-
|
23
|
+
"react": "19.2.0-canary-c498bfce-20250426"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|