react-dom 19.0.0-rc-100dfd7dab-20240701 → 19.0.0-rc-3da26163a3-20240704
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 +265 -238
- package/cjs/react-dom-server-legacy.browser.production.js +48 -62
- package/cjs/react-dom-server-legacy.node.development.js +265 -238
- package/cjs/react-dom-server-legacy.node.production.js +48 -62
- package/cjs/react-dom-server.browser.development.js +267 -240
- package/cjs/react-dom-server.browser.production.js +53 -67
- package/cjs/react-dom-server.bun.development.js +264 -241
- package/cjs/react-dom-server.bun.production.js +53 -67
- package/cjs/react-dom-server.edge.development.js +267 -240
- package/cjs/react-dom-server.edge.production.js +53 -67
- package/cjs/react-dom-server.node.development.js +268 -241
- package/cjs/react-dom-server.node.production.js +54 -68
- 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
@@ -4280,6 +4280,9 @@
|
|
4280
4280
|
var JSCompiler_inline_result$jscomp$0 =
|
4281
4281
|
describeNativeComponentFrame(componentStack.type, !0);
|
4282
4282
|
info = JSCompiler_temp_const + JSCompiler_inline_result$jscomp$0;
|
4283
|
+
break;
|
4284
|
+
case 3:
|
4285
|
+
info += describeBuiltInComponentFrame(componentStack.type);
|
4283
4286
|
}
|
4284
4287
|
componentStack = componentStack.parent;
|
4285
4288
|
} while (componentStack);
|
@@ -4379,7 +4382,6 @@
|
|
4379
4382
|
abortSet,
|
4380
4383
|
null,
|
4381
4384
|
rootFormatContext,
|
4382
|
-
emptyContextObject,
|
4383
4385
|
null,
|
4384
4386
|
emptyTreeContext,
|
4385
4387
|
null,
|
@@ -4454,7 +4456,6 @@
|
|
4454
4456
|
abortSet,
|
4455
4457
|
keyPath,
|
4456
4458
|
formatContext,
|
4457
|
-
legacyContext,
|
4458
4459
|
context,
|
4459
4460
|
treeContext,
|
4460
4461
|
componentStack,
|
@@ -4477,7 +4478,6 @@
|
|
4477
4478
|
abortSet: abortSet,
|
4478
4479
|
keyPath: keyPath,
|
4479
4480
|
formatContext: formatContext,
|
4480
|
-
legacyContext: legacyContext,
|
4481
4481
|
context: context,
|
4482
4482
|
treeContext: treeContext,
|
4483
4483
|
componentStack: componentStack,
|
@@ -4498,7 +4498,6 @@
|
|
4498
4498
|
abortSet,
|
4499
4499
|
keyPath,
|
4500
4500
|
formatContext,
|
4501
|
-
legacyContext,
|
4502
4501
|
context,
|
4503
4502
|
treeContext,
|
4504
4503
|
componentStack,
|
@@ -4522,7 +4521,6 @@
|
|
4522
4521
|
abortSet: abortSet,
|
4523
4522
|
keyPath: keyPath,
|
4524
4523
|
formatContext: formatContext,
|
4525
|
-
legacyContext: legacyContext,
|
4526
4524
|
context: context,
|
4527
4525
|
treeContext: treeContext,
|
4528
4526
|
componentStack: componentStack,
|
@@ -4577,8 +4575,39 @@
|
|
4577
4575
|
stack: stack
|
4578
4576
|
};
|
4579
4577
|
}
|
4580
|
-
function
|
4581
|
-
|
4578
|
+
function pushServerComponentStack(task, debugInfo) {
|
4579
|
+
if (null != debugInfo)
|
4580
|
+
for (var i = 0; i < debugInfo.length; i++) {
|
4581
|
+
var componentInfo = debugInfo[i];
|
4582
|
+
if ("string" === typeof componentInfo.name) {
|
4583
|
+
var name = componentInfo.name,
|
4584
|
+
env = componentInfo.env;
|
4585
|
+
env && (name += " (" + env + ")");
|
4586
|
+
task.componentStack = {
|
4587
|
+
tag: 3,
|
4588
|
+
parent: task.componentStack,
|
4589
|
+
type: name,
|
4590
|
+
owner: componentInfo.owner,
|
4591
|
+
stack: componentInfo.stack
|
4592
|
+
};
|
4593
|
+
}
|
4594
|
+
}
|
4595
|
+
}
|
4596
|
+
function getThrownInfo(node) {
|
4597
|
+
var errorInfo = {};
|
4598
|
+
node &&
|
4599
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4600
|
+
configurable: !0,
|
4601
|
+
enumerable: !0,
|
4602
|
+
get: function () {
|
4603
|
+
var stack = getStackByComponentStackNode(node);
|
4604
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4605
|
+
value: stack
|
4606
|
+
});
|
4607
|
+
return stack;
|
4608
|
+
}
|
4609
|
+
});
|
4610
|
+
return errorInfo;
|
4582
4611
|
}
|
4583
4612
|
function encodeErrorForBoundary(
|
4584
4613
|
boundary,
|
@@ -4603,19 +4632,20 @@
|
|
4603
4632
|
boundary.errorComponentStack = thrownInfo.componentStack;
|
4604
4633
|
}
|
4605
4634
|
function logRecoverableError(request, error$1, errorInfo) {
|
4606
|
-
request = request.onError
|
4607
|
-
|
4635
|
+
request = request.onError;
|
4636
|
+
error$1 = request(error$1, errorInfo);
|
4637
|
+
if (null != error$1 && "string" !== typeof error$1)
|
4608
4638
|
error$jscomp$2(
|
4609
4639
|
'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',
|
4610
|
-
typeof
|
4640
|
+
typeof error$1
|
4611
4641
|
);
|
4612
|
-
else return
|
4642
|
+
else return error$1;
|
4613
4643
|
}
|
4614
4644
|
function fatalError(request, error) {
|
4615
|
-
var onShellError = request.onShellError
|
4616
|
-
|
4617
|
-
onShellError = request.onFatalError;
|
4645
|
+
var onShellError = request.onShellError,
|
4646
|
+
onFatalError = request.onFatalError;
|
4618
4647
|
onShellError(error);
|
4648
|
+
onFatalError(error);
|
4619
4649
|
null !== request.destination
|
4620
4650
|
? ((request.status = 2), closeWithError(request.destination, error))
|
4621
4651
|
: ((request.status = 1), (request.fatalError = error));
|
@@ -5341,7 +5371,7 @@
|
|
5341
5371
|
} catch (error$2) {
|
5342
5372
|
contentRootSegment.status = 4;
|
5343
5373
|
newBoundary.status = CLIENT_RENDERED;
|
5344
|
-
var thrownInfo = getThrownInfo(
|
5374
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
5345
5375
|
var errorDigest = logRecoverableError(
|
5346
5376
|
request,
|
5347
5377
|
error$2,
|
@@ -5395,7 +5425,6 @@
|
|
5395
5425
|
fallbackAbortSet,
|
5396
5426
|
fallbackKeyPath,
|
5397
5427
|
task.formatContext,
|
5398
|
-
task.legacyContext,
|
5399
5428
|
task.context,
|
5400
5429
|
task.treeContext,
|
5401
5430
|
suspenseComponentStack,
|
@@ -5598,197 +5627,194 @@
|
|
5598
5627
|
props = node$jscomp$0.props,
|
5599
5628
|
refProp = props.ref;
|
5600
5629
|
var ref = void 0 !== refProp ? refProp : null;
|
5601
|
-
|
5630
|
+
var owner = node$jscomp$0._owner;
|
5631
|
+
refProp = task.componentStack;
|
5632
|
+
pushServerComponentStack(task, node$jscomp$0._debugInfo);
|
5602
5633
|
var name = getComponentNameFromType(type),
|
5603
5634
|
keyOrIndex =
|
5604
5635
|
null == key ? (-1 === childIndex ? 0 : childIndex) : key;
|
5605
5636
|
key = [task.keyPath, name, keyOrIndex];
|
5606
|
-
if (null !== task.replay)
|
5607
|
-
|
5608
|
-
|
5609
|
-
|
5610
|
-
|
5611
|
-
|
5612
|
-
|
5613
|
-
|
5614
|
-
|
5615
|
-
|
5616
|
-
if (
|
5617
|
-
if (
|
5618
|
-
|
5637
|
+
if (null !== task.replay) {
|
5638
|
+
var replay = task.replay;
|
5639
|
+
node$jscomp$0 = replay.nodes;
|
5640
|
+
for (
|
5641
|
+
childIndex = 0;
|
5642
|
+
childIndex < node$jscomp$0.length;
|
5643
|
+
childIndex++
|
5644
|
+
) {
|
5645
|
+
var node = node$jscomp$0[childIndex];
|
5646
|
+
if (keyOrIndex === node[1]) {
|
5647
|
+
if (4 === node.length) {
|
5648
|
+
if (null !== name && name !== node[0])
|
5649
|
+
throw Error(
|
5650
|
+
"Expected the resume to render <" +
|
5651
|
+
node[0] +
|
5652
|
+
"> in this slot but instead it rendered <" +
|
5653
|
+
name +
|
5654
|
+
">. The tree doesn't match so React will fallback to client rendering."
|
5655
|
+
);
|
5656
|
+
var childNodes = node[2];
|
5657
|
+
name = node[3];
|
5658
|
+
keyOrIndex = task.node;
|
5659
|
+
task.replay = {
|
5660
|
+
nodes: childNodes,
|
5661
|
+
slots: name,
|
5662
|
+
pendingTasks: 1
|
5663
|
+
};
|
5664
|
+
try {
|
5665
|
+
renderElement(
|
5666
|
+
request,
|
5667
|
+
task,
|
5668
|
+
key,
|
5669
|
+
type,
|
5670
|
+
props,
|
5671
|
+
ref,
|
5672
|
+
owner,
|
5673
|
+
null
|
5674
|
+
);
|
5675
|
+
if (
|
5676
|
+
1 === task.replay.pendingTasks &&
|
5677
|
+
0 < task.replay.nodes.length
|
5678
|
+
)
|
5619
5679
|
throw Error(
|
5620
|
-
"
|
5621
|
-
|
5622
|
-
|
5623
|
-
|
5624
|
-
|
5680
|
+
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
5681
|
+
);
|
5682
|
+
task.replay.pendingTasks--;
|
5683
|
+
} catch (x) {
|
5684
|
+
if (
|
5685
|
+
"object" === typeof x &&
|
5686
|
+
null !== x &&
|
5687
|
+
(x === SuspenseException ||
|
5688
|
+
"function" === typeof x.then)
|
5689
|
+
)
|
5690
|
+
throw (
|
5691
|
+
(task.node === keyOrIndex && (task.replay = replay),
|
5692
|
+
x)
|
5625
5693
|
);
|
5626
|
-
|
5694
|
+
task.replay.pendingTasks--;
|
5695
|
+
owner = getThrownInfo(task.componentStack);
|
5696
|
+
erroredReplay(
|
5697
|
+
request,
|
5698
|
+
task.blockedBoundary,
|
5699
|
+
x,
|
5700
|
+
owner,
|
5701
|
+
childNodes,
|
5702
|
+
name
|
5703
|
+
);
|
5704
|
+
}
|
5705
|
+
task.replay = replay;
|
5706
|
+
} else {
|
5707
|
+
if (type !== REACT_SUSPENSE_TYPE)
|
5708
|
+
throw Error(
|
5709
|
+
"Expected the resume to render <Suspense> in this slot but instead it rendered <" +
|
5710
|
+
(getComponentNameFromType(type) || "Unknown") +
|
5711
|
+
">. The tree doesn't match so React will fallback to client rendering."
|
5712
|
+
);
|
5713
|
+
a: {
|
5714
|
+
type = void 0;
|
5715
|
+
ref = task;
|
5716
|
+
var props$jscomp$0 = props;
|
5717
|
+
props = node[5];
|
5718
|
+
replay = node[2];
|
5627
5719
|
name = node[3];
|
5628
|
-
|
5629
|
-
|
5630
|
-
|
5720
|
+
keyOrIndex = null === node[4] ? [] : node[4][2];
|
5721
|
+
node = null === node[4] ? null : node[4][3];
|
5722
|
+
var previousComponentStack = ref.componentStack;
|
5723
|
+
owner = ref.componentStack =
|
5724
|
+
createBuiltInComponentStack(
|
5725
|
+
ref,
|
5726
|
+
"Suspense",
|
5727
|
+
owner,
|
5728
|
+
null
|
5729
|
+
);
|
5730
|
+
var prevKeyPath = ref.keyPath,
|
5731
|
+
previousReplaySet = ref.replay,
|
5732
|
+
parentBoundary = ref.blockedBoundary,
|
5733
|
+
parentHoistableState = ref.hoistableState,
|
5734
|
+
content = props$jscomp$0.children;
|
5735
|
+
props$jscomp$0 = props$jscomp$0.fallback;
|
5736
|
+
var fallbackAbortSet = new Set(),
|
5737
|
+
resumedBoundary = createSuspenseBoundary(
|
5738
|
+
request,
|
5739
|
+
fallbackAbortSet
|
5740
|
+
);
|
5741
|
+
resumedBoundary.parentFlushed = !0;
|
5742
|
+
resumedBoundary.rootSegmentID = props;
|
5743
|
+
ref.blockedBoundary = resumedBoundary;
|
5744
|
+
ref.hoistableState = resumedBoundary.contentState;
|
5745
|
+
ref.replay = {
|
5746
|
+
nodes: replay,
|
5631
5747
|
slots: name,
|
5632
5748
|
pendingTasks: 1
|
5633
5749
|
};
|
5634
5750
|
try {
|
5635
|
-
|
5636
|
-
request,
|
5637
|
-
task,
|
5638
|
-
key,
|
5639
|
-
type,
|
5640
|
-
props,
|
5641
|
-
ref,
|
5642
|
-
refProp,
|
5643
|
-
null
|
5644
|
-
);
|
5751
|
+
renderNode(request, ref, content, -1);
|
5645
5752
|
if (
|
5646
|
-
1 ===
|
5647
|
-
0 <
|
5753
|
+
1 === ref.replay.pendingTasks &&
|
5754
|
+
0 < ref.replay.nodes.length
|
5648
5755
|
)
|
5649
5756
|
throw Error(
|
5650
5757
|
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
5651
5758
|
);
|
5652
|
-
|
5653
|
-
} catch (x) {
|
5759
|
+
ref.replay.pendingTasks--;
|
5654
5760
|
if (
|
5655
|
-
|
5656
|
-
|
5657
|
-
|
5658
|
-
|
5659
|
-
|
5660
|
-
|
5661
|
-
|
5662
|
-
|
5663
|
-
|
5664
|
-
|
5665
|
-
|
5666
|
-
request,
|
5667
|
-
task.blockedBoundary,
|
5668
|
-
x,
|
5669
|
-
refProp,
|
5670
|
-
childNodes,
|
5671
|
-
name
|
5672
|
-
);
|
5673
|
-
}
|
5674
|
-
task.replay = replay;
|
5675
|
-
} else {
|
5676
|
-
if (type !== REACT_SUSPENSE_TYPE)
|
5677
|
-
throw Error(
|
5678
|
-
"Expected the resume to render <Suspense> in this slot but instead it rendered <" +
|
5679
|
-
(getComponentNameFromType(type) || "Unknown") +
|
5680
|
-
">. The tree doesn't match so React will fallback to client rendering."
|
5681
|
-
);
|
5682
|
-
b: {
|
5683
|
-
type = void 0;
|
5684
|
-
ref = key;
|
5685
|
-
var props$jscomp$0 = props;
|
5686
|
-
props = node[5];
|
5687
|
-
key = node[2];
|
5688
|
-
replay = node[3];
|
5689
|
-
name = null === node[4] ? [] : node[4][2];
|
5690
|
-
node = null === node[4] ? null : node[4][3];
|
5691
|
-
keyOrIndex = task.componentStack;
|
5692
|
-
refProp = task.componentStack =
|
5693
|
-
createBuiltInComponentStack(
|
5694
|
-
task,
|
5695
|
-
"Suspense",
|
5696
|
-
refProp,
|
5697
|
-
null
|
5698
|
-
);
|
5699
|
-
var prevKeyPath = task.keyPath,
|
5700
|
-
previousReplaySet = task.replay,
|
5701
|
-
parentBoundary = task.blockedBoundary,
|
5702
|
-
parentHoistableState = task.hoistableState,
|
5703
|
-
content = props$jscomp$0.children;
|
5704
|
-
props$jscomp$0 = props$jscomp$0.fallback;
|
5705
|
-
var fallbackAbortSet = new Set(),
|
5706
|
-
resumedBoundary = createSuspenseBoundary(
|
5761
|
+
0 === resumedBoundary.pendingTasks &&
|
5762
|
+
resumedBoundary.status === PENDING
|
5763
|
+
) {
|
5764
|
+
resumedBoundary.status = COMPLETED;
|
5765
|
+
request.completedBoundaries.push(resumedBoundary);
|
5766
|
+
break a;
|
5767
|
+
}
|
5768
|
+
} catch (error$3) {
|
5769
|
+
(resumedBoundary.status = CLIENT_RENDERED),
|
5770
|
+
(childNodes = getThrownInfo(ref.componentStack)),
|
5771
|
+
(type = logRecoverableError(
|
5707
5772
|
request,
|
5708
|
-
|
5773
|
+
error$3,
|
5774
|
+
childNodes
|
5775
|
+
)),
|
5776
|
+
encodeErrorForBoundary(
|
5777
|
+
resumedBoundary,
|
5778
|
+
type,
|
5779
|
+
error$3,
|
5780
|
+
childNodes,
|
5781
|
+
!1
|
5782
|
+
),
|
5783
|
+
ref.replay.pendingTasks--,
|
5784
|
+
request.clientRenderedBoundaries.push(
|
5785
|
+
resumedBoundary
|
5709
5786
|
);
|
5710
|
-
|
5711
|
-
|
5712
|
-
|
5713
|
-
|
5714
|
-
|
5715
|
-
|
5716
|
-
slots: replay,
|
5717
|
-
pendingTasks: 1
|
5718
|
-
};
|
5719
|
-
try {
|
5720
|
-
renderNode(request, task, content, -1);
|
5721
|
-
if (
|
5722
|
-
1 === task.replay.pendingTasks &&
|
5723
|
-
0 < task.replay.nodes.length
|
5724
|
-
)
|
5725
|
-
throw Error(
|
5726
|
-
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
5727
|
-
);
|
5728
|
-
task.replay.pendingTasks--;
|
5729
|
-
if (
|
5730
|
-
0 === resumedBoundary.pendingTasks &&
|
5731
|
-
resumedBoundary.status === PENDING
|
5732
|
-
) {
|
5733
|
-
resumedBoundary.status = COMPLETED;
|
5734
|
-
request.completedBoundaries.push(resumedBoundary);
|
5735
|
-
break b;
|
5736
|
-
}
|
5737
|
-
} catch (error$3) {
|
5738
|
-
(resumedBoundary.status = CLIENT_RENDERED),
|
5739
|
-
(childNodes = getThrownInfo(
|
5740
|
-
request,
|
5741
|
-
task.componentStack
|
5742
|
-
)),
|
5743
|
-
(type = logRecoverableError(
|
5744
|
-
request,
|
5745
|
-
error$3,
|
5746
|
-
childNodes
|
5747
|
-
)),
|
5748
|
-
encodeErrorForBoundary(
|
5749
|
-
resumedBoundary,
|
5750
|
-
type,
|
5751
|
-
error$3,
|
5752
|
-
childNodes,
|
5753
|
-
!1
|
5754
|
-
),
|
5755
|
-
task.replay.pendingTasks--,
|
5756
|
-
request.clientRenderedBoundaries.push(
|
5757
|
-
resumedBoundary
|
5758
|
-
);
|
5759
|
-
} finally {
|
5760
|
-
(task.blockedBoundary = parentBoundary),
|
5761
|
-
(task.hoistableState = parentHoistableState),
|
5762
|
-
(task.replay = previousReplaySet),
|
5763
|
-
(task.keyPath = prevKeyPath),
|
5764
|
-
(task.componentStack = keyOrIndex);
|
5765
|
-
}
|
5766
|
-
childNodes = createReplayTask(
|
5767
|
-
request,
|
5768
|
-
null,
|
5769
|
-
{ nodes: name, slots: node, pendingTasks: 0 },
|
5770
|
-
props$jscomp$0,
|
5771
|
-
-1,
|
5772
|
-
parentBoundary,
|
5773
|
-
resumedBoundary.fallbackState,
|
5774
|
-
fallbackAbortSet,
|
5775
|
-
[ref[0], "Suspense Fallback", ref[2]],
|
5776
|
-
task.formatContext,
|
5777
|
-
task.legacyContext,
|
5778
|
-
task.context,
|
5779
|
-
task.treeContext,
|
5780
|
-
refProp,
|
5781
|
-
!0
|
5782
|
-
);
|
5783
|
-
request.pingedTasks.push(childNodes);
|
5787
|
+
} finally {
|
5788
|
+
(ref.blockedBoundary = parentBoundary),
|
5789
|
+
(ref.hoistableState = parentHoistableState),
|
5790
|
+
(ref.replay = previousReplaySet),
|
5791
|
+
(ref.keyPath = prevKeyPath),
|
5792
|
+
(ref.componentStack = previousComponentStack);
|
5784
5793
|
}
|
5794
|
+
childNodes = createReplayTask(
|
5795
|
+
request,
|
5796
|
+
null,
|
5797
|
+
{ nodes: keyOrIndex, slots: node, pendingTasks: 0 },
|
5798
|
+
props$jscomp$0,
|
5799
|
+
-1,
|
5800
|
+
parentBoundary,
|
5801
|
+
resumedBoundary.fallbackState,
|
5802
|
+
fallbackAbortSet,
|
5803
|
+
[key[0], "Suspense Fallback", key[2]],
|
5804
|
+
ref.formatContext,
|
5805
|
+
ref.context,
|
5806
|
+
ref.treeContext,
|
5807
|
+
owner,
|
5808
|
+
!0
|
5809
|
+
);
|
5810
|
+
request.pingedTasks.push(childNodes);
|
5785
5811
|
}
|
5786
|
-
childIndex.splice(node$jscomp$0, 1);
|
5787
|
-
break a;
|
5788
5812
|
}
|
5813
|
+
node$jscomp$0.splice(childIndex, 1);
|
5814
|
+
break;
|
5789
5815
|
}
|
5790
5816
|
}
|
5791
|
-
else
|
5817
|
+
} else
|
5792
5818
|
renderElement(
|
5793
5819
|
request,
|
5794
5820
|
task,
|
@@ -5796,24 +5822,27 @@
|
|
5796
5822
|
type,
|
5797
5823
|
props,
|
5798
5824
|
ref,
|
5799
|
-
|
5825
|
+
owner,
|
5800
5826
|
null
|
5801
5827
|
);
|
5828
|
+
task.componentStack = refProp;
|
5802
5829
|
return;
|
5803
5830
|
case REACT_PORTAL_TYPE:
|
5804
5831
|
throw Error(
|
5805
5832
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
5806
5833
|
);
|
5807
5834
|
case REACT_LAZY_TYPE:
|
5808
|
-
|
5809
|
-
task.
|
5810
|
-
|
5811
|
-
|
5812
|
-
|
5813
|
-
|
5814
|
-
|
5835
|
+
refProp = task.componentStack;
|
5836
|
+
pushServerComponentStack(task, node$jscomp$0._debugInfo);
|
5837
|
+
task.componentStack === refProp &&
|
5838
|
+
(task.componentStack = createBuiltInComponentStack(
|
5839
|
+
task,
|
5840
|
+
"Lazy",
|
5841
|
+
null,
|
5842
|
+
null
|
5843
|
+
));
|
5815
5844
|
node$jscomp$0 = callLazyInitInDEV(node$jscomp$0);
|
5816
|
-
task.componentStack =
|
5845
|
+
task.componentStack = refProp;
|
5817
5846
|
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
5818
5847
|
return;
|
5819
5848
|
}
|
@@ -5822,22 +5851,21 @@
|
|
5822
5851
|
return;
|
5823
5852
|
}
|
5824
5853
|
null === node$jscomp$0 || "object" !== typeof node$jscomp$0
|
5825
|
-
? (
|
5826
|
-
: ((
|
5854
|
+
? (childNodes = null)
|
5855
|
+
: ((refProp =
|
5827
5856
|
(MAYBE_ITERATOR_SYMBOL &&
|
5828
5857
|
node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
|
5829
5858
|
node$jscomp$0["@@iterator"]),
|
5830
|
-
(
|
5831
|
-
if (
|
5832
|
-
if (
|
5859
|
+
(childNodes = "function" === typeof refProp ? refProp : null));
|
5860
|
+
if (childNodes && (refProp = childNodes.call(node$jscomp$0))) {
|
5861
|
+
if (refProp === node$jscomp$0) {
|
5833
5862
|
if (
|
5834
5863
|
-1 !== childIndex ||
|
5835
5864
|
null === task.componentStack ||
|
5836
5865
|
1 !== task.componentStack.tag ||
|
5837
5866
|
"[object GeneratorFunction]" !==
|
5838
5867
|
Object.prototype.toString.call(task.componentStack.type) ||
|
5839
|
-
"[object Generator]" !==
|
5840
|
-
Object.prototype.toString.call(childNodes)
|
5868
|
+
"[object Generator]" !== Object.prototype.toString.call(refProp)
|
5841
5869
|
)
|
5842
5870
|
didWarnAboutGenerators ||
|
5843
5871
|
error$jscomp$2(
|
@@ -5845,32 +5873,36 @@
|
|
5845
5873
|
),
|
5846
5874
|
(didWarnAboutGenerators = !0);
|
5847
5875
|
} else
|
5848
|
-
node$jscomp$0.entries !==
|
5876
|
+
node$jscomp$0.entries !== childNodes ||
|
5849
5877
|
didWarnAboutMaps ||
|
5850
5878
|
(error$jscomp$2(
|
5851
5879
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
5852
5880
|
),
|
5853
5881
|
(didWarnAboutMaps = !0));
|
5854
|
-
node$jscomp$0 =
|
5882
|
+
node$jscomp$0 = refProp.next();
|
5855
5883
|
if (!node$jscomp$0.done) {
|
5856
|
-
|
5884
|
+
childNodes = [];
|
5857
5885
|
do
|
5858
|
-
|
5859
|
-
(node$jscomp$0 =
|
5886
|
+
childNodes.push(node$jscomp$0.value),
|
5887
|
+
(node$jscomp$0 = refProp.next());
|
5860
5888
|
while (!node$jscomp$0.done);
|
5861
|
-
renderChildrenArray(request, task,
|
5889
|
+
renderChildrenArray(request, task, childNodes, childIndex);
|
5862
5890
|
}
|
5863
5891
|
return;
|
5864
5892
|
}
|
5865
5893
|
if ("function" === typeof node$jscomp$0.then)
|
5866
5894
|
return (
|
5867
5895
|
(task.thenableState = null),
|
5868
|
-
|
5896
|
+
(refProp = task.componentStack),
|
5897
|
+
pushServerComponentStack(task, node$jscomp$0._debugInfo),
|
5898
|
+
(node$jscomp$0 = renderNodeDestructive(
|
5869
5899
|
request,
|
5870
5900
|
task,
|
5871
5901
|
unwrapThenable(node$jscomp$0),
|
5872
5902
|
childIndex
|
5873
|
-
)
|
5903
|
+
)),
|
5904
|
+
(task.componentStack = refProp),
|
5905
|
+
node$jscomp$0
|
5874
5906
|
);
|
5875
5907
|
if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
|
5876
5908
|
return renderNodeDestructive(
|
@@ -5879,43 +5911,43 @@
|
|
5879
5911
|
node$jscomp$0._currentValue,
|
5880
5912
|
childIndex
|
5881
5913
|
);
|
5882
|
-
|
5914
|
+
task = Object.prototype.toString.call(node$jscomp$0);
|
5883
5915
|
throw Error(
|
5884
5916
|
"Objects are not valid as a React child (found: " +
|
5885
|
-
("[object Object]" ===
|
5917
|
+
("[object Object]" === task
|
5886
5918
|
? "object with keys {" +
|
5887
5919
|
Object.keys(node$jscomp$0).join(", ") +
|
5888
5920
|
"}"
|
5889
|
-
:
|
5921
|
+
: task) +
|
5890
5922
|
"). If you meant to render a collection of children, use an array instead."
|
5891
5923
|
);
|
5892
5924
|
}
|
5893
5925
|
"string" === typeof node$jscomp$0
|
5894
|
-
? ((
|
5895
|
-
null !==
|
5896
|
-
(
|
5897
|
-
|
5926
|
+
? ((task = task.blockedSegment),
|
5927
|
+
null !== task &&
|
5928
|
+
(task.lastPushedText = pushTextInstance(
|
5929
|
+
task.chunks,
|
5898
5930
|
node$jscomp$0,
|
5899
5931
|
request.renderState,
|
5900
|
-
|
5932
|
+
task.lastPushedText
|
5901
5933
|
)))
|
5902
5934
|
: "number" === typeof node$jscomp$0 ||
|
5903
5935
|
"bigint" === typeof node$jscomp$0
|
5904
|
-
? ((
|
5905
|
-
null !==
|
5906
|
-
(
|
5907
|
-
|
5936
|
+
? ((task = task.blockedSegment),
|
5937
|
+
null !== task &&
|
5938
|
+
(task.lastPushedText = pushTextInstance(
|
5939
|
+
task.chunks,
|
5908
5940
|
"" + node$jscomp$0,
|
5909
5941
|
request.renderState,
|
5910
|
-
|
5942
|
+
task.lastPushedText
|
5911
5943
|
)))
|
5912
5944
|
: ("function" === typeof node$jscomp$0 &&
|
5913
|
-
((
|
5945
|
+
((task =
|
5914
5946
|
node$jscomp$0.displayName || node$jscomp$0.name || "Component"),
|
5915
5947
|
error$jscomp$2(
|
5916
5948
|
"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",
|
5917
|
-
|
5918
|
-
|
5949
|
+
task,
|
5950
|
+
task
|
5919
5951
|
)),
|
5920
5952
|
"symbol" === typeof node$jscomp$0 &&
|
5921
5953
|
error$jscomp$2(
|
@@ -5925,7 +5957,9 @@
|
|
5925
5957
|
}
|
5926
5958
|
}
|
5927
5959
|
function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
|
5928
|
-
var prevKeyPath = task.keyPath
|
5960
|
+
var prevKeyPath = task.keyPath,
|
5961
|
+
previousComponentStack = task.componentStack;
|
5962
|
+
pushServerComponentStack(task, task.node._debugInfo);
|
5929
5963
|
if (
|
5930
5964
|
-1 !== childIndex &&
|
5931
5965
|
((task.keyPath = [task.keyPath, "Fragment", childIndex]),
|
@@ -5959,7 +5993,7 @@
|
|
5959
5993
|
)
|
5960
5994
|
throw x;
|
5961
5995
|
task.replay.pendingTasks--;
|
5962
|
-
children = getThrownInfo(
|
5996
|
+
children = getThrownInfo(task.componentStack);
|
5963
5997
|
erroredReplay(
|
5964
5998
|
request$jscomp$0,
|
5965
5999
|
task.blockedBoundary,
|
@@ -5975,6 +6009,7 @@
|
|
5975
6009
|
}
|
5976
6010
|
}
|
5977
6011
|
task.keyPath = prevKeyPath;
|
6012
|
+
task.componentStack = previousComponentStack;
|
5978
6013
|
return;
|
5979
6014
|
}
|
5980
6015
|
replay = task.treeContext;
|
@@ -6000,6 +6035,7 @@
|
|
6000
6035
|
}
|
6001
6036
|
task.treeContext = replay;
|
6002
6037
|
task.keyPath = prevKeyPath;
|
6038
|
+
task.componentStack = previousComponentStack;
|
6003
6039
|
return;
|
6004
6040
|
}
|
6005
6041
|
for (j = 0; j < replayNodes; j++) {
|
@@ -6093,6 +6129,7 @@
|
|
6093
6129
|
}
|
6094
6130
|
task.treeContext = replay;
|
6095
6131
|
task.keyPath = prevKeyPath;
|
6132
|
+
task.componentStack = previousComponentStack;
|
6096
6133
|
}
|
6097
6134
|
function untrackBoundary(request, boundary) {
|
6098
6135
|
request = request.trackedPostpones;
|
@@ -6105,7 +6142,6 @@
|
|
6105
6142
|
}
|
6106
6143
|
function renderNode(request, task, node, childIndex) {
|
6107
6144
|
var previousFormatContext = task.formatContext,
|
6108
|
-
previousLegacyContext = task.legacyContext,
|
6109
6145
|
previousContext = task.context,
|
6110
6146
|
previousKeyPath = task.keyPath,
|
6111
6147
|
previousTreeContext = task.treeContext,
|
@@ -6137,7 +6173,6 @@
|
|
6137
6173
|
task.abortSet,
|
6138
6174
|
task.keyPath,
|
6139
6175
|
task.formatContext,
|
6140
|
-
task.legacyContext,
|
6141
6176
|
task.context,
|
6142
6177
|
task.treeContext,
|
6143
6178
|
null !== task.componentStack ? task.componentStack.parent : null,
|
@@ -6145,7 +6180,6 @@
|
|
6145
6180
|
).ping;
|
6146
6181
|
node.then(request, request);
|
6147
6182
|
task.formatContext = previousFormatContext;
|
6148
|
-
task.legacyContext = previousLegacyContext;
|
6149
6183
|
task.context = previousContext;
|
6150
6184
|
task.keyPath = previousKeyPath;
|
6151
6185
|
task.treeContext = previousTreeContext;
|
@@ -6195,7 +6229,6 @@
|
|
6195
6229
|
task.abortSet,
|
6196
6230
|
task.keyPath,
|
6197
6231
|
task.formatContext,
|
6198
|
-
task.legacyContext,
|
6199
6232
|
task.context,
|
6200
6233
|
task.treeContext,
|
6201
6234
|
null !== task.componentStack ? task.componentStack.parent : null,
|
@@ -6203,7 +6236,6 @@
|
|
6203
6236
|
).ping;
|
6204
6237
|
node.then(request, request);
|
6205
6238
|
task.formatContext = previousFormatContext;
|
6206
|
-
task.legacyContext = previousLegacyContext;
|
6207
6239
|
task.context = previousContext;
|
6208
6240
|
task.keyPath = previousKeyPath;
|
6209
6241
|
task.treeContext = previousTreeContext;
|
@@ -6214,7 +6246,6 @@
|
|
6214
6246
|
}
|
6215
6247
|
}
|
6216
6248
|
task.formatContext = previousFormatContext;
|
6217
|
-
task.legacyContext = previousLegacyContext;
|
6218
6249
|
task.context = previousContext;
|
6219
6250
|
task.keyPath = previousKeyPath;
|
6220
6251
|
task.treeContext = previousTreeContext;
|
@@ -6345,7 +6376,7 @@
|
|
6345
6376
|
boundary.pendingTasks--,
|
6346
6377
|
boundary.status !== CLIENT_RENDERED &&
|
6347
6378
|
((boundary.status = CLIENT_RENDERED),
|
6348
|
-
(task = getThrownInfo(
|
6379
|
+
(task = getThrownInfo(task.componentStack)),
|
6349
6380
|
(segment = logRecoverableError(request, error, task)),
|
6350
6381
|
encodeErrorForBoundary(boundary, segment, error, task, !0),
|
6351
6382
|
untrackBoundary(request, boundary),
|
@@ -6556,10 +6587,7 @@
|
|
6556
6587
|
} else {
|
6557
6588
|
request.replay.pendingTasks--;
|
6558
6589
|
request.abortSet.delete(request);
|
6559
|
-
var errorInfo = getThrownInfo(
|
6560
|
-
request$jscomp$0,
|
6561
|
-
request.componentStack
|
6562
|
-
);
|
6590
|
+
var errorInfo = getThrownInfo(request.componentStack);
|
6563
6591
|
erroredReplay(
|
6564
6592
|
request$jscomp$0,
|
6565
6593
|
request.blockedBoundary,
|
@@ -6628,7 +6656,6 @@
|
|
6628
6656
|
task$jscomp$0.componentStack.parent);
|
6629
6657
|
} else {
|
6630
6658
|
var errorInfo$jscomp$0 = getThrownInfo(
|
6631
|
-
request,
|
6632
6659
|
task$jscomp$0.componentStack
|
6633
6660
|
);
|
6634
6661
|
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
@@ -8746,11 +8773,11 @@
|
|
8746
8773
|
didWarnAboutMaps = !1;
|
8747
8774
|
(function () {
|
8748
8775
|
var isomorphicReactPackageVersion = React.version;
|
8749
|
-
if ("19.0.0-rc-
|
8776
|
+
if ("19.0.0-rc-3da26163a3-20240704" !== isomorphicReactPackageVersion)
|
8750
8777
|
throw Error(
|
8751
8778
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8752
8779
|
(isomorphicReactPackageVersion +
|
8753
|
-
"\n - react-dom: 19.0.0-rc-
|
8780
|
+
"\n - react-dom: 19.0.0-rc-3da26163a3-20240704\nLearn more: https://react.dev/warnings/version-mismatch")
|
8754
8781
|
);
|
8755
8782
|
})();
|
8756
8783
|
exports.renderToReadableStream = function (children, options) {
|
@@ -8843,5 +8870,5 @@
|
|
8843
8870
|
startWork(request$jscomp$0);
|
8844
8871
|
});
|
8845
8872
|
};
|
8846
|
-
exports.version = "19.0.0-rc-
|
8873
|
+
exports.version = "19.0.0-rc-3da26163a3-20240704";
|
8847
8874
|
})();
|