react-dom 19.2.0-canary-223f81d8-20250707 → 19.2.0-canary-befc1246-20250708
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 +13 -9
- package/cjs/react-dom-client.production.js +13 -9
- package/cjs/react-dom-profiling.development.js +13 -9
- package/cjs/react-dom-profiling.profiling.js +13 -9
- package/cjs/react-dom-server-legacy.browser.development.js +40 -26
- package/cjs/react-dom-server-legacy.browser.production.js +55 -44
- package/cjs/react-dom-server-legacy.node.development.js +40 -26
- package/cjs/react-dom-server-legacy.node.production.js +55 -44
- package/cjs/react-dom-server.browser.development.js +40 -28
- package/cjs/react-dom-server.browser.production.js +55 -46
- package/cjs/react-dom-server.bun.development.js +46 -31
- package/cjs/react-dom-server.bun.production.js +61 -49
- package/cjs/react-dom-server.edge.development.js +40 -28
- package/cjs/react-dom-server.edge.production.js +55 -46
- package/cjs/react-dom-server.node.development.js +40 -28
- package/cjs/react-dom-server.node.production.js +55 -46
- 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
@@ -6026,6 +6026,18 @@ function pushComponentStack(task) {
|
|
6026
6026
|
pushServerComponentStack(task, node._debugInfo);
|
6027
6027
|
}
|
6028
6028
|
}
|
6029
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
6030
|
+
componentStack
|
6031
|
+
) {
|
6032
|
+
return null === componentStack
|
6033
|
+
? null
|
6034
|
+
: {
|
6035
|
+
parent: componentStack.parent,
|
6036
|
+
type: "Suspense Fallback",
|
6037
|
+
owner: componentStack.owner,
|
6038
|
+
stack: componentStack.stack
|
6039
|
+
};
|
6040
|
+
}
|
6029
6041
|
function getThrownInfo(node$jscomp$0) {
|
6030
6042
|
var errorInfo = {};
|
6031
6043
|
node$jscomp$0 &&
|
@@ -6794,27 +6806,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6794
6806
|
!1
|
6795
6807
|
);
|
6796
6808
|
segment.preambleChildren.push(preambleSegment);
|
6797
|
-
|
6798
|
-
|
6799
|
-
|
6800
|
-
|
6801
|
-
|
6802
|
-
|
6803
|
-
|
6804
|
-
|
6805
|
-
|
6806
|
-
|
6807
|
-
|
6808
|
-
|
6809
|
-
|
6810
|
-
task.
|
6811
|
-
|
6812
|
-
task.componentStack,
|
6813
|
-
emptyContextObject,
|
6814
|
-
task.debugTask
|
6815
|
-
);
|
6816
|
-
pushComponentStack(preambleTask);
|
6817
|
-
request.pingedTasks.push(preambleTask);
|
6809
|
+
task.blockedSegment = preambleSegment;
|
6810
|
+
try {
|
6811
|
+
(preambleSegment.status = 6),
|
6812
|
+
renderNode(request, task, _children, -1),
|
6813
|
+
pushSegmentFinale(
|
6814
|
+
preambleSegment.chunks,
|
6815
|
+
request.renderState,
|
6816
|
+
preambleSegment.lastPushedText,
|
6817
|
+
preambleSegment.textEmbedded
|
6818
|
+
),
|
6819
|
+
(preambleSegment.status = COMPLETED),
|
6820
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
6821
|
+
} finally {
|
6822
|
+
task.blockedSegment = segment;
|
6823
|
+
}
|
6818
6824
|
} else renderNode(request, task, _children, -1);
|
6819
6825
|
task.formatContext = _prevContext2;
|
6820
6826
|
task.keyPath = _prevKeyPath3;
|
@@ -7032,7 +7038,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
7032
7038
|
);
|
7033
7039
|
contentRootSegment.parentFlushed = !0;
|
7034
7040
|
if (null !== request.trackedPostpones) {
|
7035
|
-
var
|
7041
|
+
var suspenseComponentStack = task.componentStack,
|
7042
|
+
fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
|
7036
7043
|
fallbackReplayNode = [
|
7037
7044
|
fallbackKeyPath[1],
|
7038
7045
|
fallbackKeyPath[2],
|
@@ -7051,6 +7058,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
7051
7058
|
request.resumableState,
|
7052
7059
|
prevContext$jscomp$0
|
7053
7060
|
);
|
7061
|
+
task.componentStack =
|
7062
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
7063
|
+
suspenseComponentStack
|
7064
|
+
);
|
7054
7065
|
boundarySegment.status = 6;
|
7055
7066
|
try {
|
7056
7067
|
renderNode(request, task, fallback, -1),
|
@@ -7092,7 +7103,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
7092
7103
|
task.context,
|
7093
7104
|
task.treeContext,
|
7094
7105
|
null,
|
7095
|
-
|
7106
|
+
suspenseComponentStack,
|
7096
7107
|
emptyContextObject,
|
7097
7108
|
task.debugTask
|
7098
7109
|
);
|
@@ -7190,7 +7201,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
7190
7201
|
task.context,
|
7191
7202
|
task.treeContext,
|
7192
7203
|
task.row,
|
7193
|
-
|
7204
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
7205
|
+
task.componentStack
|
7206
|
+
),
|
7194
7207
|
emptyContextObject,
|
7195
7208
|
task.debugTask
|
7196
7209
|
);
|
@@ -7510,7 +7523,9 @@ function replayElement(
|
|
7510
7523
|
task.context,
|
7511
7524
|
task.treeContext,
|
7512
7525
|
task.row,
|
7513
|
-
|
7526
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
7527
|
+
task.componentStack
|
7528
|
+
),
|
7514
7529
|
emptyContextObject,
|
7515
7530
|
task.debugTask
|
7516
7531
|
);
|
@@ -9308,15 +9323,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
9308
9323
|
parentNode[2].push(node);
|
9309
9324
|
}
|
9310
9325
|
}
|
9311
|
-
var isomorphicReactPackageVersion$jscomp$
|
9326
|
+
var isomorphicReactPackageVersion$jscomp$inline_764 = React.version;
|
9312
9327
|
if (
|
9313
|
-
"19.2.0-canary-
|
9314
|
-
isomorphicReactPackageVersion$jscomp$
|
9328
|
+
"19.2.0-canary-befc1246-20250708" !==
|
9329
|
+
isomorphicReactPackageVersion$jscomp$inline_764
|
9315
9330
|
)
|
9316
9331
|
throw Error(
|
9317
9332
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
9318
|
-
(isomorphicReactPackageVersion$jscomp$
|
9319
|
-
"\n - react-dom: 19.2.0-canary-
|
9333
|
+
(isomorphicReactPackageVersion$jscomp$inline_764 +
|
9334
|
+
"\n - react-dom: 19.2.0-canary-befc1246-20250708\nLearn more: https://react.dev/warnings/version-mismatch")
|
9320
9335
|
);
|
9321
9336
|
exports.renderToReadableStream = function (children, options) {
|
9322
9337
|
return new Promise(function (resolve, reject) {
|
@@ -9409,4 +9424,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
9409
9424
|
startWork(request$jscomp$0);
|
9410
9425
|
});
|
9411
9426
|
};
|
9412
|
-
exports.version = "19.2.0-canary-
|
9427
|
+
exports.version = "19.2.0-canary-befc1246-20250708";
|
@@ -3943,6 +3943,13 @@ function pushComponentStack(task) {
|
|
3943
3943
|
task.componentStack = { parent: task.componentStack, type: node.type };
|
3944
3944
|
}
|
3945
3945
|
}
|
3946
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
3947
|
+
componentStack
|
3948
|
+
) {
|
3949
|
+
return null === componentStack
|
3950
|
+
? null
|
3951
|
+
: { parent: componentStack.parent, type: "Suspense Fallback" };
|
3952
|
+
}
|
3946
3953
|
function getThrownInfo(node$jscomp$0) {
|
3947
3954
|
var errorInfo = {};
|
3948
3955
|
node$jscomp$0 &&
|
@@ -4323,7 +4330,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4323
4330
|
(task.formatContext = defaultProps),
|
4324
4331
|
(task.keyPath = initialState);
|
4325
4332
|
else {
|
4326
|
-
|
4333
|
+
initialState = pushStartInstance(
|
4327
4334
|
newProps.chunks,
|
4328
4335
|
type,
|
4329
4336
|
props,
|
@@ -4336,42 +4343,40 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4336
4343
|
);
|
4337
4344
|
newProps.lastPushedText = !1;
|
4338
4345
|
defaultProps = task.formatContext;
|
4339
|
-
|
4346
|
+
ref = task.keyPath;
|
4340
4347
|
task.keyPath = keyPath;
|
4341
|
-
|
4342
|
-
|
4343
|
-
.
|
4344
|
-
|
4345
|
-
|
4346
|
-
|
4347
|
-
|
4348
|
-
|
4349
|
-
|
4350
|
-
|
4351
|
-
|
4352
|
-
|
4353
|
-
|
4354
|
-
|
4355
|
-
|
4356
|
-
|
4357
|
-
|
4358
|
-
task
|
4359
|
-
|
4360
|
-
|
4361
|
-
|
4362
|
-
|
4363
|
-
|
4364
|
-
|
4365
|
-
|
4366
|
-
task.
|
4367
|
-
|
4368
|
-
|
4369
|
-
|
4370
|
-
|
4371
|
-
request.pingedTasks.push(keyPath))
|
4372
|
-
: renderNode(request, task, ref, -1);
|
4348
|
+
if (
|
4349
|
+
3 ===
|
4350
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props))
|
4351
|
+
.insertionMode
|
4352
|
+
) {
|
4353
|
+
keyPath = createPendingSegment(
|
4354
|
+
request,
|
4355
|
+
0,
|
4356
|
+
null,
|
4357
|
+
task.formatContext,
|
4358
|
+
!1,
|
4359
|
+
!1
|
4360
|
+
);
|
4361
|
+
newProps.preambleChildren.push(keyPath);
|
4362
|
+
task.blockedSegment = keyPath;
|
4363
|
+
try {
|
4364
|
+
(keyPath.status = 6),
|
4365
|
+
renderNode(request, task, initialState, -1),
|
4366
|
+
pushSegmentFinale(
|
4367
|
+
keyPath.chunks,
|
4368
|
+
request.renderState,
|
4369
|
+
keyPath.lastPushedText,
|
4370
|
+
keyPath.textEmbedded
|
4371
|
+
),
|
4372
|
+
(keyPath.status = 1),
|
4373
|
+
finishedSegment(request, task.blockedBoundary, keyPath);
|
4374
|
+
} finally {
|
4375
|
+
task.blockedSegment = newProps;
|
4376
|
+
}
|
4377
|
+
} else renderNode(request, task, initialState, -1);
|
4373
4378
|
task.formatContext = defaultProps;
|
4374
|
-
task.keyPath =
|
4379
|
+
task.keyPath = ref;
|
4375
4380
|
a: {
|
4376
4381
|
task = newProps.chunks;
|
4377
4382
|
request = request.resumableState;
|
@@ -4559,17 +4564,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4559
4564
|
);
|
4560
4565
|
contentRootSegment.parentFlushed = !0;
|
4561
4566
|
if (null !== request.trackedPostpones) {
|
4562
|
-
newProps =
|
4563
|
-
defaultProps = [
|
4564
|
-
|
4565
|
-
|
4567
|
+
newProps = task.componentStack;
|
4568
|
+
defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
4569
|
+
initialState = [defaultProps[1], defaultProps[2], [], null];
|
4570
|
+
request.trackedPostpones.workingMap.set(defaultProps, initialState);
|
4571
|
+
newBoundary.trackedFallbackNode = initialState;
|
4566
4572
|
task.blockedSegment = boundarySegment;
|
4567
4573
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
4568
|
-
task.keyPath =
|
4574
|
+
task.keyPath = defaultProps;
|
4569
4575
|
task.formatContext = getSuspenseFallbackFormatContext(
|
4570
4576
|
request.resumableState,
|
4571
4577
|
ref
|
4572
4578
|
);
|
4579
|
+
task.componentStack =
|
4580
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
|
4573
4581
|
boundarySegment.status = 6;
|
4574
4582
|
try {
|
4575
4583
|
renderNode(request, task, fallback, -1),
|
@@ -4610,7 +4618,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4610
4618
|
task.context,
|
4611
4619
|
task.treeContext,
|
4612
4620
|
null,
|
4613
|
-
|
4621
|
+
newProps
|
4614
4622
|
);
|
4615
4623
|
pushComponentStack(task);
|
4616
4624
|
request.pingedTasks.push(task);
|
@@ -4695,7 +4703,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4695
4703
|
task.context,
|
4696
4704
|
task.treeContext,
|
4697
4705
|
task.row,
|
4698
|
-
|
4706
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
4707
|
+
task.componentStack
|
4708
|
+
)
|
4699
4709
|
);
|
4700
4710
|
pushComponentStack(task);
|
4701
4711
|
request.pingedTasks.push(task);
|
@@ -5008,7 +5018,9 @@ function retryNode(request, task) {
|
|
5008
5018
|
task.context,
|
5009
5019
|
task.treeContext,
|
5010
5020
|
task.row,
|
5011
|
-
|
5021
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
5022
|
+
task.componentStack
|
5023
|
+
)
|
5012
5024
|
);
|
5013
5025
|
pushComponentStack(childNodes);
|
5014
5026
|
request.pingedTasks.push(childNodes);
|
@@ -6485,15 +6497,15 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6485
6497
|
parentNode[2].push(node);
|
6486
6498
|
}
|
6487
6499
|
}
|
6488
|
-
var isomorphicReactPackageVersion$jscomp$
|
6500
|
+
var isomorphicReactPackageVersion$jscomp$inline_816 = React.version;
|
6489
6501
|
if (
|
6490
|
-
"19.2.0-canary-
|
6491
|
-
isomorphicReactPackageVersion$jscomp$
|
6502
|
+
"19.2.0-canary-befc1246-20250708" !==
|
6503
|
+
isomorphicReactPackageVersion$jscomp$inline_816
|
6492
6504
|
)
|
6493
6505
|
throw Error(
|
6494
6506
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6495
|
-
(isomorphicReactPackageVersion$jscomp$
|
6496
|
-
"\n - react-dom: 19.2.0-canary-
|
6507
|
+
(isomorphicReactPackageVersion$jscomp$inline_816 +
|
6508
|
+
"\n - react-dom: 19.2.0-canary-befc1246-20250708\nLearn more: https://react.dev/warnings/version-mismatch")
|
6497
6509
|
);
|
6498
6510
|
exports.renderToReadableStream = function (children, options) {
|
6499
6511
|
return new Promise(function (resolve, reject) {
|
@@ -6584,4 +6596,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6584
6596
|
startWork(request);
|
6585
6597
|
});
|
6586
6598
|
};
|
6587
|
-
exports.version = "19.2.0-canary-
|
6599
|
+
exports.version = "19.2.0-canary-befc1246-20250708";
|
@@ -4940,6 +4940,18 @@
|
|
4940
4940
|
pushServerComponentStack(task, node._debugInfo);
|
4941
4941
|
}
|
4942
4942
|
}
|
4943
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
4944
|
+
componentStack
|
4945
|
+
) {
|
4946
|
+
return null === componentStack
|
4947
|
+
? null
|
4948
|
+
: {
|
4949
|
+
parent: componentStack.parent,
|
4950
|
+
type: "Suspense Fallback",
|
4951
|
+
owner: componentStack.owner,
|
4952
|
+
stack: componentStack.stack
|
4953
|
+
};
|
4954
|
+
}
|
4943
4955
|
function getThrownInfo(node$jscomp$0) {
|
4944
4956
|
var errorInfo = {};
|
4945
4957
|
node$jscomp$0 &&
|
@@ -5762,27 +5774,18 @@
|
|
5762
5774
|
!1
|
5763
5775
|
);
|
5764
5776
|
segment.preambleChildren.push(preambleSegment);
|
5765
|
-
|
5766
|
-
|
5767
|
-
|
5768
|
-
|
5769
|
-
|
5770
|
-
|
5771
|
-
|
5772
|
-
|
5773
|
-
|
5774
|
-
|
5775
|
-
task.
|
5776
|
-
|
5777
|
-
task.context,
|
5778
|
-
task.treeContext,
|
5779
|
-
task.row,
|
5780
|
-
task.componentStack,
|
5781
|
-
emptyContextObject,
|
5782
|
-
task.debugTask
|
5783
|
-
);
|
5784
|
-
pushComponentStack(preambleTask);
|
5785
|
-
request.pingedTasks.push(preambleTask);
|
5777
|
+
task.blockedSegment = preambleSegment;
|
5778
|
+
try {
|
5779
|
+
(preambleSegment.status = 6),
|
5780
|
+
renderNode(request, task, _children, -1),
|
5781
|
+
preambleSegment.lastPushedText &&
|
5782
|
+
preambleSegment.textEmbedded &&
|
5783
|
+
preambleSegment.chunks.push(textSeparator),
|
5784
|
+
(preambleSegment.status = COMPLETED),
|
5785
|
+
finishedSegment(request, task.blockedBoundary, preambleSegment);
|
5786
|
+
} finally {
|
5787
|
+
task.blockedSegment = segment;
|
5788
|
+
}
|
5786
5789
|
} else renderNode(request, task, _children, -1);
|
5787
5790
|
task.formatContext = _prevContext2;
|
5788
5791
|
task.keyPath = _prevKeyPath3;
|
@@ -6002,7 +6005,8 @@
|
|
6002
6005
|
);
|
6003
6006
|
contentRootSegment.parentFlushed = !0;
|
6004
6007
|
if (null !== request.trackedPostpones) {
|
6005
|
-
var
|
6008
|
+
var suspenseComponentStack = task.componentStack,
|
6009
|
+
fallbackKeyPath = [
|
6006
6010
|
keyPath[0],
|
6007
6011
|
"Suspense Fallback",
|
6008
6012
|
keyPath[2]
|
@@ -6025,6 +6029,10 @@
|
|
6025
6029
|
request.resumableState,
|
6026
6030
|
prevContext$jscomp$0
|
6027
6031
|
);
|
6032
|
+
task.componentStack =
|
6033
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
6034
|
+
suspenseComponentStack
|
6035
|
+
);
|
6028
6036
|
boundarySegment.status = 6;
|
6029
6037
|
try {
|
6030
6038
|
renderNode(request, task, fallback, -1),
|
@@ -6063,7 +6071,7 @@
|
|
6063
6071
|
task.context,
|
6064
6072
|
task.treeContext,
|
6065
6073
|
null,
|
6066
|
-
|
6074
|
+
suspenseComponentStack,
|
6067
6075
|
emptyContextObject,
|
6068
6076
|
task.debugTask
|
6069
6077
|
);
|
@@ -6159,7 +6167,9 @@
|
|
6159
6167
|
task.context,
|
6160
6168
|
task.treeContext,
|
6161
6169
|
task.row,
|
6162
|
-
|
6170
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
6171
|
+
task.componentStack
|
6172
|
+
),
|
6163
6173
|
emptyContextObject,
|
6164
6174
|
task.debugTask
|
6165
6175
|
);
|
@@ -6485,7 +6495,9 @@
|
|
6485
6495
|
task.context,
|
6486
6496
|
task.treeContext,
|
6487
6497
|
task.row,
|
6488
|
-
|
6498
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
6499
|
+
task.componentStack
|
6500
|
+
),
|
6489
6501
|
emptyContextObject,
|
6490
6502
|
task.debugTask
|
6491
6503
|
);
|
@@ -8459,11 +8471,11 @@
|
|
8459
8471
|
}
|
8460
8472
|
function ensureCorrectIsomorphicReactVersion() {
|
8461
8473
|
var isomorphicReactPackageVersion = React.version;
|
8462
|
-
if ("19.2.0-canary-
|
8474
|
+
if ("19.2.0-canary-befc1246-20250708" !== isomorphicReactPackageVersion)
|
8463
8475
|
throw Error(
|
8464
8476
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8465
8477
|
(isomorphicReactPackageVersion +
|
8466
|
-
"\n - react-dom: 19.2.0-canary-
|
8478
|
+
"\n - react-dom: 19.2.0-canary-befc1246-20250708\nLearn more: https://react.dev/warnings/version-mismatch")
|
8467
8479
|
);
|
8468
8480
|
}
|
8469
8481
|
var React = require("react"),
|
@@ -10149,5 +10161,5 @@
|
|
10149
10161
|
startWork(request);
|
10150
10162
|
});
|
10151
10163
|
};
|
10152
|
-
exports.version = "19.2.0-canary-
|
10164
|
+
exports.version = "19.2.0-canary-befc1246-20250708";
|
10153
10165
|
})();
|
@@ -4385,6 +4385,13 @@ function pushComponentStack(task) {
|
|
4385
4385
|
task.componentStack = { parent: task.componentStack, type: node.type };
|
4386
4386
|
}
|
4387
4387
|
}
|
4388
|
+
function replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
4389
|
+
componentStack
|
4390
|
+
) {
|
4391
|
+
return null === componentStack
|
4392
|
+
? null
|
4393
|
+
: { parent: componentStack.parent, type: "Suspense Fallback" };
|
4394
|
+
}
|
4388
4395
|
function getThrownInfo(node$jscomp$0) {
|
4389
4396
|
var errorInfo = {};
|
4390
4397
|
node$jscomp$0 &&
|
@@ -4762,7 +4769,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4762
4769
|
(task.formatContext = defaultProps),
|
4763
4770
|
(task.keyPath = initialState);
|
4764
4771
|
else {
|
4765
|
-
|
4772
|
+
initialState = pushStartInstance(
|
4766
4773
|
newProps.chunks,
|
4767
4774
|
type,
|
4768
4775
|
props,
|
@@ -4775,42 +4782,37 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4775
4782
|
);
|
4776
4783
|
newProps.lastPushedText = !1;
|
4777
4784
|
defaultProps = task.formatContext;
|
4778
|
-
|
4785
|
+
ref = task.keyPath;
|
4779
4786
|
task.keyPath = keyPath;
|
4780
|
-
|
4781
|
-
|
4782
|
-
.
|
4783
|
-
|
4784
|
-
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
|
4793
|
-
|
4794
|
-
|
4795
|
-
|
4796
|
-
|
4797
|
-
task
|
4798
|
-
keyPath
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
task.keyPath
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
task.componentStack
|
4808
|
-
)),
|
4809
|
-
pushComponentStack(keyPath),
|
4810
|
-
request.pingedTasks.push(keyPath))
|
4811
|
-
: renderNode(request, task, ref, -1);
|
4787
|
+
if (
|
4788
|
+
3 ===
|
4789
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props))
|
4790
|
+
.insertionMode
|
4791
|
+
) {
|
4792
|
+
keyPath = createPendingSegment(
|
4793
|
+
request,
|
4794
|
+
0,
|
4795
|
+
null,
|
4796
|
+
task.formatContext,
|
4797
|
+
!1,
|
4798
|
+
!1
|
4799
|
+
);
|
4800
|
+
newProps.preambleChildren.push(keyPath);
|
4801
|
+
task.blockedSegment = keyPath;
|
4802
|
+
try {
|
4803
|
+
(keyPath.status = 6),
|
4804
|
+
renderNode(request, task, initialState, -1),
|
4805
|
+
keyPath.lastPushedText &&
|
4806
|
+
keyPath.textEmbedded &&
|
4807
|
+
keyPath.chunks.push(textSeparator),
|
4808
|
+
(keyPath.status = 1),
|
4809
|
+
finishedSegment(request, task.blockedBoundary, keyPath);
|
4810
|
+
} finally {
|
4811
|
+
task.blockedSegment = newProps;
|
4812
|
+
}
|
4813
|
+
} else renderNode(request, task, initialState, -1);
|
4812
4814
|
task.formatContext = defaultProps;
|
4813
|
-
task.keyPath =
|
4815
|
+
task.keyPath = ref;
|
4814
4816
|
a: {
|
4815
4817
|
task = newProps.chunks;
|
4816
4818
|
request = request.resumableState;
|
@@ -4998,17 +5000,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4998
5000
|
);
|
4999
5001
|
contentRootSegment.parentFlushed = !0;
|
5000
5002
|
if (null !== request.trackedPostpones) {
|
5001
|
-
newProps =
|
5002
|
-
defaultProps = [
|
5003
|
-
|
5004
|
-
|
5003
|
+
newProps = task.componentStack;
|
5004
|
+
defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
5005
|
+
initialState = [defaultProps[1], defaultProps[2], [], null];
|
5006
|
+
request.trackedPostpones.workingMap.set(defaultProps, initialState);
|
5007
|
+
newBoundary.trackedFallbackNode = initialState;
|
5005
5008
|
task.blockedSegment = boundarySegment;
|
5006
5009
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5007
|
-
task.keyPath =
|
5010
|
+
task.keyPath = defaultProps;
|
5008
5011
|
task.formatContext = getSuspenseFallbackFormatContext(
|
5009
5012
|
request.resumableState,
|
5010
5013
|
ref
|
5011
5014
|
);
|
5015
|
+
task.componentStack =
|
5016
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
|
5012
5017
|
boundarySegment.status = 6;
|
5013
5018
|
try {
|
5014
5019
|
renderNode(request, task, fallback, -1),
|
@@ -5046,7 +5051,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
5046
5051
|
task.context,
|
5047
5052
|
task.treeContext,
|
5048
5053
|
null,
|
5049
|
-
|
5054
|
+
newProps
|
5050
5055
|
);
|
5051
5056
|
pushComponentStack(task);
|
5052
5057
|
request.pingedTasks.push(task);
|
@@ -5128,7 +5133,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
5128
5133
|
task.context,
|
5129
5134
|
task.treeContext,
|
5130
5135
|
task.row,
|
5131
|
-
|
5136
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
5137
|
+
task.componentStack
|
5138
|
+
)
|
5132
5139
|
);
|
5133
5140
|
pushComponentStack(task);
|
5134
5141
|
request.pingedTasks.push(task);
|
@@ -5441,7 +5448,9 @@ function retryNode(request, task) {
|
|
5441
5448
|
task.context,
|
5442
5449
|
task.treeContext,
|
5443
5450
|
task.row,
|
5444
|
-
|
5451
|
+
replaceSuspenseComponentStackWithSuspenseFallbackStack(
|
5452
|
+
task.componentStack
|
5453
|
+
)
|
5445
5454
|
);
|
5446
5455
|
pushComponentStack(childNodes);
|
5447
5456
|
request.pingedTasks.push(childNodes);
|
@@ -6940,11 +6949,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
6940
6949
|
}
|
6941
6950
|
function ensureCorrectIsomorphicReactVersion() {
|
6942
6951
|
var isomorphicReactPackageVersion = React.version;
|
6943
|
-
if ("19.2.0-canary-
|
6952
|
+
if ("19.2.0-canary-befc1246-20250708" !== isomorphicReactPackageVersion)
|
6944
6953
|
throw Error(
|
6945
6954
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6946
6955
|
(isomorphicReactPackageVersion +
|
6947
|
-
"\n - react-dom: 19.2.0-canary-
|
6956
|
+
"\n - react-dom: 19.2.0-canary-befc1246-20250708\nLearn more: https://react.dev/warnings/version-mismatch")
|
6948
6957
|
);
|
6949
6958
|
}
|
6950
6959
|
ensureCorrectIsomorphicReactVersion();
|
@@ -7090,4 +7099,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
7090
7099
|
startWork(request);
|
7091
7100
|
});
|
7092
7101
|
};
|
7093
|
-
exports.version = "19.2.0-canary-
|
7102
|
+
exports.version = "19.2.0-canary-befc1246-20250708";
|