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.
@@ -4276,6 +4276,9 @@
4276
4276
  var JSCompiler_inline_result$jscomp$0 =
4277
4277
  describeNativeComponentFrame(componentStack.type, !0);
4278
4278
  info = JSCompiler_temp_const + JSCompiler_inline_result$jscomp$0;
4279
+ break;
4280
+ case 3:
4281
+ info += describeBuiltInComponentFrame(componentStack.type);
4279
4282
  }
4280
4283
  componentStack = componentStack.parent;
4281
4284
  } while (componentStack);
@@ -4375,7 +4378,6 @@
4375
4378
  abortSet,
4376
4379
  null,
4377
4380
  rootFormatContext,
4378
- emptyContextObject,
4379
4381
  null,
4380
4382
  emptyTreeContext,
4381
4383
  null,
@@ -4458,7 +4460,6 @@
4458
4460
  abortSet,
4459
4461
  keyPath,
4460
4462
  formatContext,
4461
- legacyContext,
4462
4463
  context,
4463
4464
  treeContext,
4464
4465
  componentStack,
@@ -4481,7 +4482,6 @@
4481
4482
  abortSet: abortSet,
4482
4483
  keyPath: keyPath,
4483
4484
  formatContext: formatContext,
4484
- legacyContext: legacyContext,
4485
4485
  context: context,
4486
4486
  treeContext: treeContext,
4487
4487
  componentStack: componentStack,
@@ -4502,7 +4502,6 @@
4502
4502
  abortSet,
4503
4503
  keyPath,
4504
4504
  formatContext,
4505
- legacyContext,
4506
4505
  context,
4507
4506
  treeContext,
4508
4507
  componentStack,
@@ -4526,7 +4525,6 @@
4526
4525
  abortSet: abortSet,
4527
4526
  keyPath: keyPath,
4528
4527
  formatContext: formatContext,
4529
- legacyContext: legacyContext,
4530
4528
  context: context,
4531
4529
  treeContext: treeContext,
4532
4530
  componentStack: componentStack,
@@ -4581,8 +4579,39 @@
4581
4579
  stack: stack
4582
4580
  };
4583
4581
  }
4584
- function getThrownInfo(request, node) {
4585
- return node ? { componentStack: getStackByComponentStackNode(node) } : {};
4582
+ function pushServerComponentStack(task, debugInfo) {
4583
+ if (null != debugInfo)
4584
+ for (var i = 0; i < debugInfo.length; i++) {
4585
+ var componentInfo = debugInfo[i];
4586
+ if ("string" === typeof componentInfo.name) {
4587
+ var name = componentInfo.name,
4588
+ env = componentInfo.env;
4589
+ env && (name += " (" + env + ")");
4590
+ task.componentStack = {
4591
+ tag: 3,
4592
+ parent: task.componentStack,
4593
+ type: name,
4594
+ owner: componentInfo.owner,
4595
+ stack: componentInfo.stack
4596
+ };
4597
+ }
4598
+ }
4599
+ }
4600
+ function getThrownInfo(node) {
4601
+ var errorInfo = {};
4602
+ node &&
4603
+ Object.defineProperty(errorInfo, "componentStack", {
4604
+ configurable: !0,
4605
+ enumerable: !0,
4606
+ get: function () {
4607
+ var stack = getStackByComponentStackNode(node);
4608
+ Object.defineProperty(errorInfo, "componentStack", {
4609
+ value: stack
4610
+ });
4611
+ return stack;
4612
+ }
4613
+ });
4614
+ return errorInfo;
4586
4615
  }
4587
4616
  function encodeErrorForBoundary(
4588
4617
  boundary,
@@ -4607,19 +4636,20 @@
4607
4636
  boundary.errorComponentStack = thrownInfo.componentStack;
4608
4637
  }
4609
4638
  function logRecoverableError(request, error$1, errorInfo) {
4610
- request = request.onError(error$1, errorInfo);
4611
- if (null != request && "string" !== typeof request)
4639
+ request = request.onError;
4640
+ error$1 = request(error$1, errorInfo);
4641
+ if (null != error$1 && "string" !== typeof error$1)
4612
4642
  error$jscomp$2(
4613
4643
  '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',
4614
- typeof request
4644
+ typeof error$1
4615
4645
  );
4616
- else return request;
4646
+ else return error$1;
4617
4647
  }
4618
4648
  function fatalError(request, error) {
4619
- var onShellError = request.onShellError;
4620
- onShellError(error);
4621
- onShellError = request.onFatalError;
4649
+ var onShellError = request.onShellError,
4650
+ onFatalError = request.onFatalError;
4622
4651
  onShellError(error);
4652
+ onFatalError(error);
4623
4653
  null !== request.destination
4624
4654
  ? ((request.status = 2), closeWithError(request.destination, error))
4625
4655
  : ((request.status = 1), (request.fatalError = error));
@@ -5345,7 +5375,7 @@
5345
5375
  } catch (error$2) {
5346
5376
  contentRootSegment.status = 4;
5347
5377
  newBoundary.status = CLIENT_RENDERED;
5348
- var thrownInfo = getThrownInfo(request, task.componentStack);
5378
+ var thrownInfo = getThrownInfo(task.componentStack);
5349
5379
  var errorDigest = logRecoverableError(
5350
5380
  request,
5351
5381
  error$2,
@@ -5399,7 +5429,6 @@
5399
5429
  fallbackAbortSet,
5400
5430
  fallbackKeyPath,
5401
5431
  task.formatContext,
5402
- task.legacyContext,
5403
5432
  task.context,
5404
5433
  task.treeContext,
5405
5434
  suspenseComponentStack,
@@ -5602,197 +5631,194 @@
5602
5631
  props = node$jscomp$0.props,
5603
5632
  refProp = props.ref;
5604
5633
  var ref = void 0 !== refProp ? refProp : null;
5605
- refProp = node$jscomp$0._owner;
5634
+ var owner = node$jscomp$0._owner;
5635
+ refProp = task.componentStack;
5636
+ pushServerComponentStack(task, node$jscomp$0._debugInfo);
5606
5637
  var name = getComponentNameFromType(type),
5607
5638
  keyOrIndex =
5608
5639
  null == key ? (-1 === childIndex ? 0 : childIndex) : key;
5609
5640
  key = [task.keyPath, name, keyOrIndex];
5610
- if (null !== task.replay)
5611
- a: {
5612
- var replay = task.replay;
5613
- childIndex = replay.nodes;
5614
- for (
5615
- node$jscomp$0 = 0;
5616
- node$jscomp$0 < childIndex.length;
5617
- node$jscomp$0++
5618
- ) {
5619
- var node = childIndex[node$jscomp$0];
5620
- if (keyOrIndex === node[1]) {
5621
- if (4 === node.length) {
5622
- if (null !== name && name !== node[0])
5641
+ if (null !== task.replay) {
5642
+ var replay = task.replay;
5643
+ node$jscomp$0 = replay.nodes;
5644
+ for (
5645
+ childIndex = 0;
5646
+ childIndex < node$jscomp$0.length;
5647
+ childIndex++
5648
+ ) {
5649
+ var node = node$jscomp$0[childIndex];
5650
+ if (keyOrIndex === node[1]) {
5651
+ if (4 === node.length) {
5652
+ if (null !== name && name !== node[0])
5653
+ throw Error(
5654
+ "Expected the resume to render <" +
5655
+ node[0] +
5656
+ "> in this slot but instead it rendered <" +
5657
+ name +
5658
+ ">. The tree doesn't match so React will fallback to client rendering."
5659
+ );
5660
+ var childNodes = node[2];
5661
+ name = node[3];
5662
+ keyOrIndex = task.node;
5663
+ task.replay = {
5664
+ nodes: childNodes,
5665
+ slots: name,
5666
+ pendingTasks: 1
5667
+ };
5668
+ try {
5669
+ renderElement(
5670
+ request,
5671
+ task,
5672
+ key,
5673
+ type,
5674
+ props,
5675
+ ref,
5676
+ owner,
5677
+ null
5678
+ );
5679
+ if (
5680
+ 1 === task.replay.pendingTasks &&
5681
+ 0 < task.replay.nodes.length
5682
+ )
5623
5683
  throw Error(
5624
- "Expected the resume to render <" +
5625
- node[0] +
5626
- "> in this slot but instead it rendered <" +
5627
- name +
5628
- ">. The tree doesn't match so React will fallback to client rendering."
5684
+ "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5685
+ );
5686
+ task.replay.pendingTasks--;
5687
+ } catch (x) {
5688
+ if (
5689
+ "object" === typeof x &&
5690
+ null !== x &&
5691
+ (x === SuspenseException ||
5692
+ "function" === typeof x.then)
5693
+ )
5694
+ throw (
5695
+ (task.node === keyOrIndex && (task.replay = replay),
5696
+ x)
5629
5697
  );
5630
- var childNodes = node[2];
5698
+ task.replay.pendingTasks--;
5699
+ owner = getThrownInfo(task.componentStack);
5700
+ erroredReplay(
5701
+ request,
5702
+ task.blockedBoundary,
5703
+ x,
5704
+ owner,
5705
+ childNodes,
5706
+ name
5707
+ );
5708
+ }
5709
+ task.replay = replay;
5710
+ } else {
5711
+ if (type !== REACT_SUSPENSE_TYPE)
5712
+ throw Error(
5713
+ "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
5714
+ (getComponentNameFromType(type) || "Unknown") +
5715
+ ">. The tree doesn't match so React will fallback to client rendering."
5716
+ );
5717
+ a: {
5718
+ type = void 0;
5719
+ ref = task;
5720
+ var props$jscomp$0 = props;
5721
+ props = node[5];
5722
+ replay = node[2];
5631
5723
  name = node[3];
5632
- node = task.node;
5633
- task.replay = {
5634
- nodes: childNodes,
5724
+ keyOrIndex = null === node[4] ? [] : node[4][2];
5725
+ node = null === node[4] ? null : node[4][3];
5726
+ var previousComponentStack = ref.componentStack;
5727
+ owner = ref.componentStack =
5728
+ createBuiltInComponentStack(
5729
+ ref,
5730
+ "Suspense",
5731
+ owner,
5732
+ null
5733
+ );
5734
+ var prevKeyPath = ref.keyPath,
5735
+ previousReplaySet = ref.replay,
5736
+ parentBoundary = ref.blockedBoundary,
5737
+ parentHoistableState = ref.hoistableState,
5738
+ content = props$jscomp$0.children;
5739
+ props$jscomp$0 = props$jscomp$0.fallback;
5740
+ var fallbackAbortSet = new Set(),
5741
+ resumedBoundary = createSuspenseBoundary(
5742
+ request,
5743
+ fallbackAbortSet
5744
+ );
5745
+ resumedBoundary.parentFlushed = !0;
5746
+ resumedBoundary.rootSegmentID = props;
5747
+ ref.blockedBoundary = resumedBoundary;
5748
+ ref.hoistableState = resumedBoundary.contentState;
5749
+ ref.replay = {
5750
+ nodes: replay,
5635
5751
  slots: name,
5636
5752
  pendingTasks: 1
5637
5753
  };
5638
5754
  try {
5639
- renderElement(
5640
- request,
5641
- task,
5642
- key,
5643
- type,
5644
- props,
5645
- ref,
5646
- refProp,
5647
- null
5648
- );
5755
+ renderNode(request, ref, content, -1);
5649
5756
  if (
5650
- 1 === task.replay.pendingTasks &&
5651
- 0 < task.replay.nodes.length
5757
+ 1 === ref.replay.pendingTasks &&
5758
+ 0 < ref.replay.nodes.length
5652
5759
  )
5653
5760
  throw Error(
5654
5761
  "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5655
5762
  );
5656
- task.replay.pendingTasks--;
5657
- } catch (x) {
5763
+ ref.replay.pendingTasks--;
5658
5764
  if (
5659
- "object" === typeof x &&
5660
- null !== x &&
5661
- (x === SuspenseException ||
5662
- "function" === typeof x.then)
5663
- )
5664
- throw (
5665
- (task.node === node && (task.replay = replay), x)
5666
- );
5667
- task.replay.pendingTasks--;
5668
- refProp = getThrownInfo(request, task.componentStack);
5669
- erroredReplay(
5670
- request,
5671
- task.blockedBoundary,
5672
- x,
5673
- refProp,
5674
- childNodes,
5675
- name
5676
- );
5677
- }
5678
- task.replay = replay;
5679
- } else {
5680
- if (type !== REACT_SUSPENSE_TYPE)
5681
- throw Error(
5682
- "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
5683
- (getComponentNameFromType(type) || "Unknown") +
5684
- ">. The tree doesn't match so React will fallback to client rendering."
5685
- );
5686
- b: {
5687
- type = void 0;
5688
- ref = key;
5689
- var props$jscomp$0 = props;
5690
- props = node[5];
5691
- key = node[2];
5692
- replay = node[3];
5693
- name = null === node[4] ? [] : node[4][2];
5694
- node = null === node[4] ? null : node[4][3];
5695
- keyOrIndex = task.componentStack;
5696
- refProp = task.componentStack =
5697
- createBuiltInComponentStack(
5698
- task,
5699
- "Suspense",
5700
- refProp,
5701
- null
5702
- );
5703
- var prevKeyPath = task.keyPath,
5704
- previousReplaySet = task.replay,
5705
- parentBoundary = task.blockedBoundary,
5706
- parentHoistableState = task.hoistableState,
5707
- content = props$jscomp$0.children;
5708
- props$jscomp$0 = props$jscomp$0.fallback;
5709
- var fallbackAbortSet = new Set(),
5710
- resumedBoundary = createSuspenseBoundary(
5765
+ 0 === resumedBoundary.pendingTasks &&
5766
+ resumedBoundary.status === PENDING
5767
+ ) {
5768
+ resumedBoundary.status = COMPLETED;
5769
+ request.completedBoundaries.push(resumedBoundary);
5770
+ break a;
5771
+ }
5772
+ } catch (error$3) {
5773
+ (resumedBoundary.status = CLIENT_RENDERED),
5774
+ (childNodes = getThrownInfo(ref.componentStack)),
5775
+ (type = logRecoverableError(
5711
5776
  request,
5712
- fallbackAbortSet
5777
+ error$3,
5778
+ childNodes
5779
+ )),
5780
+ encodeErrorForBoundary(
5781
+ resumedBoundary,
5782
+ type,
5783
+ error$3,
5784
+ childNodes,
5785
+ !1
5786
+ ),
5787
+ ref.replay.pendingTasks--,
5788
+ request.clientRenderedBoundaries.push(
5789
+ resumedBoundary
5713
5790
  );
5714
- resumedBoundary.parentFlushed = !0;
5715
- resumedBoundary.rootSegmentID = props;
5716
- task.blockedBoundary = resumedBoundary;
5717
- task.hoistableState = resumedBoundary.contentState;
5718
- task.replay = {
5719
- nodes: key,
5720
- slots: replay,
5721
- pendingTasks: 1
5722
- };
5723
- try {
5724
- renderNode(request, task, content, -1);
5725
- if (
5726
- 1 === task.replay.pendingTasks &&
5727
- 0 < task.replay.nodes.length
5728
- )
5729
- throw Error(
5730
- "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
5731
- );
5732
- task.replay.pendingTasks--;
5733
- if (
5734
- 0 === resumedBoundary.pendingTasks &&
5735
- resumedBoundary.status === PENDING
5736
- ) {
5737
- resumedBoundary.status = COMPLETED;
5738
- request.completedBoundaries.push(resumedBoundary);
5739
- break b;
5740
- }
5741
- } catch (error$3) {
5742
- (resumedBoundary.status = CLIENT_RENDERED),
5743
- (childNodes = getThrownInfo(
5744
- request,
5745
- task.componentStack
5746
- )),
5747
- (type = logRecoverableError(
5748
- request,
5749
- error$3,
5750
- childNodes
5751
- )),
5752
- encodeErrorForBoundary(
5753
- resumedBoundary,
5754
- type,
5755
- error$3,
5756
- childNodes,
5757
- !1
5758
- ),
5759
- task.replay.pendingTasks--,
5760
- request.clientRenderedBoundaries.push(
5761
- resumedBoundary
5762
- );
5763
- } finally {
5764
- (task.blockedBoundary = parentBoundary),
5765
- (task.hoistableState = parentHoistableState),
5766
- (task.replay = previousReplaySet),
5767
- (task.keyPath = prevKeyPath),
5768
- (task.componentStack = keyOrIndex);
5769
- }
5770
- childNodes = createReplayTask(
5771
- request,
5772
- null,
5773
- { nodes: name, slots: node, pendingTasks: 0 },
5774
- props$jscomp$0,
5775
- -1,
5776
- parentBoundary,
5777
- resumedBoundary.fallbackState,
5778
- fallbackAbortSet,
5779
- [ref[0], "Suspense Fallback", ref[2]],
5780
- task.formatContext,
5781
- task.legacyContext,
5782
- task.context,
5783
- task.treeContext,
5784
- refProp,
5785
- !0
5786
- );
5787
- request.pingedTasks.push(childNodes);
5791
+ } finally {
5792
+ (ref.blockedBoundary = parentBoundary),
5793
+ (ref.hoistableState = parentHoistableState),
5794
+ (ref.replay = previousReplaySet),
5795
+ (ref.keyPath = prevKeyPath),
5796
+ (ref.componentStack = previousComponentStack);
5788
5797
  }
5798
+ childNodes = createReplayTask(
5799
+ request,
5800
+ null,
5801
+ { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
5802
+ props$jscomp$0,
5803
+ -1,
5804
+ parentBoundary,
5805
+ resumedBoundary.fallbackState,
5806
+ fallbackAbortSet,
5807
+ [key[0], "Suspense Fallback", key[2]],
5808
+ ref.formatContext,
5809
+ ref.context,
5810
+ ref.treeContext,
5811
+ owner,
5812
+ !0
5813
+ );
5814
+ request.pingedTasks.push(childNodes);
5789
5815
  }
5790
- childIndex.splice(node$jscomp$0, 1);
5791
- break a;
5792
5816
  }
5817
+ node$jscomp$0.splice(childIndex, 1);
5818
+ break;
5793
5819
  }
5794
5820
  }
5795
- else
5821
+ } else
5796
5822
  renderElement(
5797
5823
  request,
5798
5824
  task,
@@ -5800,24 +5826,27 @@
5800
5826
  type,
5801
5827
  props,
5802
5828
  ref,
5803
- refProp,
5829
+ owner,
5804
5830
  null
5805
5831
  );
5832
+ task.componentStack = refProp;
5806
5833
  return;
5807
5834
  case REACT_PORTAL_TYPE:
5808
5835
  throw Error(
5809
5836
  "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
5810
5837
  );
5811
5838
  case REACT_LAZY_TYPE:
5812
- childNodes = task.componentStack;
5813
- task.componentStack = createBuiltInComponentStack(
5814
- task,
5815
- "Lazy",
5816
- null,
5817
- null
5818
- );
5839
+ refProp = task.componentStack;
5840
+ pushServerComponentStack(task, node$jscomp$0._debugInfo);
5841
+ task.componentStack === refProp &&
5842
+ (task.componentStack = createBuiltInComponentStack(
5843
+ task,
5844
+ "Lazy",
5845
+ null,
5846
+ null
5847
+ ));
5819
5848
  node$jscomp$0 = callLazyInitInDEV(node$jscomp$0);
5820
- task.componentStack = childNodes;
5849
+ task.componentStack = refProp;
5821
5850
  renderNodeDestructive(request, task, node$jscomp$0, childIndex);
5822
5851
  return;
5823
5852
  }
@@ -5826,22 +5855,21 @@
5826
5855
  return;
5827
5856
  }
5828
5857
  null === node$jscomp$0 || "object" !== typeof node$jscomp$0
5829
- ? (refProp = null)
5830
- : ((childNodes =
5858
+ ? (childNodes = null)
5859
+ : ((refProp =
5831
5860
  (MAYBE_ITERATOR_SYMBOL &&
5832
5861
  node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
5833
5862
  node$jscomp$0["@@iterator"]),
5834
- (refProp = "function" === typeof childNodes ? childNodes : null));
5835
- if (refProp && (childNodes = refProp.call(node$jscomp$0))) {
5836
- if (childNodes === node$jscomp$0) {
5863
+ (childNodes = "function" === typeof refProp ? refProp : null));
5864
+ if (childNodes && (refProp = childNodes.call(node$jscomp$0))) {
5865
+ if (refProp === node$jscomp$0) {
5837
5866
  if (
5838
5867
  -1 !== childIndex ||
5839
5868
  null === task.componentStack ||
5840
5869
  1 !== task.componentStack.tag ||
5841
5870
  "[object GeneratorFunction]" !==
5842
5871
  Object.prototype.toString.call(task.componentStack.type) ||
5843
- "[object Generator]" !==
5844
- Object.prototype.toString.call(childNodes)
5872
+ "[object Generator]" !== Object.prototype.toString.call(refProp)
5845
5873
  )
5846
5874
  didWarnAboutGenerators ||
5847
5875
  error$jscomp$2(
@@ -5849,32 +5877,36 @@
5849
5877
  ),
5850
5878
  (didWarnAboutGenerators = !0);
5851
5879
  } else
5852
- node$jscomp$0.entries !== refProp ||
5880
+ node$jscomp$0.entries !== childNodes ||
5853
5881
  didWarnAboutMaps ||
5854
5882
  (error$jscomp$2(
5855
5883
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
5856
5884
  ),
5857
5885
  (didWarnAboutMaps = !0));
5858
- node$jscomp$0 = childNodes.next();
5886
+ node$jscomp$0 = refProp.next();
5859
5887
  if (!node$jscomp$0.done) {
5860
- refProp = [];
5888
+ childNodes = [];
5861
5889
  do
5862
- refProp.push(node$jscomp$0.value),
5863
- (node$jscomp$0 = childNodes.next());
5890
+ childNodes.push(node$jscomp$0.value),
5891
+ (node$jscomp$0 = refProp.next());
5864
5892
  while (!node$jscomp$0.done);
5865
- renderChildrenArray(request, task, refProp, childIndex);
5893
+ renderChildrenArray(request, task, childNodes, childIndex);
5866
5894
  }
5867
5895
  return;
5868
5896
  }
5869
5897
  if ("function" === typeof node$jscomp$0.then)
5870
5898
  return (
5871
5899
  (task.thenableState = null),
5872
- renderNodeDestructive(
5900
+ (refProp = task.componentStack),
5901
+ pushServerComponentStack(task, node$jscomp$0._debugInfo),
5902
+ (node$jscomp$0 = renderNodeDestructive(
5873
5903
  request,
5874
5904
  task,
5875
5905
  unwrapThenable(node$jscomp$0),
5876
5906
  childIndex
5877
- )
5907
+ )),
5908
+ (task.componentStack = refProp),
5909
+ node$jscomp$0
5878
5910
  );
5879
5911
  if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
5880
5912
  return renderNodeDestructive(
@@ -5883,43 +5915,43 @@
5883
5915
  node$jscomp$0._currentValue,
5884
5916
  childIndex
5885
5917
  );
5886
- childIndex = Object.prototype.toString.call(node$jscomp$0);
5918
+ task = Object.prototype.toString.call(node$jscomp$0);
5887
5919
  throw Error(
5888
5920
  "Objects are not valid as a React child (found: " +
5889
- ("[object Object]" === childIndex
5921
+ ("[object Object]" === task
5890
5922
  ? "object with keys {" +
5891
5923
  Object.keys(node$jscomp$0).join(", ") +
5892
5924
  "}"
5893
- : childIndex) +
5925
+ : task) +
5894
5926
  "). If you meant to render a collection of children, use an array instead."
5895
5927
  );
5896
5928
  }
5897
5929
  "string" === typeof node$jscomp$0
5898
- ? ((childIndex = task.blockedSegment),
5899
- null !== childIndex &&
5900
- (childIndex.lastPushedText = pushTextInstance(
5901
- childIndex.chunks,
5930
+ ? ((task = task.blockedSegment),
5931
+ null !== task &&
5932
+ (task.lastPushedText = pushTextInstance(
5933
+ task.chunks,
5902
5934
  node$jscomp$0,
5903
5935
  request.renderState,
5904
- childIndex.lastPushedText
5936
+ task.lastPushedText
5905
5937
  )))
5906
5938
  : "number" === typeof node$jscomp$0 ||
5907
5939
  "bigint" === typeof node$jscomp$0
5908
- ? ((childIndex = task.blockedSegment),
5909
- null !== childIndex &&
5910
- (childIndex.lastPushedText = pushTextInstance(
5911
- childIndex.chunks,
5940
+ ? ((task = task.blockedSegment),
5941
+ null !== task &&
5942
+ (task.lastPushedText = pushTextInstance(
5943
+ task.chunks,
5912
5944
  "" + node$jscomp$0,
5913
5945
  request.renderState,
5914
- childIndex.lastPushedText
5946
+ task.lastPushedText
5915
5947
  )))
5916
5948
  : ("function" === typeof node$jscomp$0 &&
5917
- ((childIndex =
5949
+ ((task =
5918
5950
  node$jscomp$0.displayName || node$jscomp$0.name || "Component"),
5919
5951
  error$jscomp$2(
5920
5952
  "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.",
5921
- childIndex,
5922
- childIndex
5953
+ task,
5954
+ task
5923
5955
  )),
5924
5956
  "symbol" === typeof node$jscomp$0 &&
5925
5957
  error$jscomp$2(
@@ -5929,7 +5961,9 @@
5929
5961
  }
5930
5962
  }
5931
5963
  function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
5932
- var prevKeyPath = task.keyPath;
5964
+ var prevKeyPath = task.keyPath,
5965
+ previousComponentStack = task.componentStack;
5966
+ pushServerComponentStack(task, task.node._debugInfo);
5933
5967
  if (
5934
5968
  -1 !== childIndex &&
5935
5969
  ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
@@ -5963,7 +5997,7 @@
5963
5997
  )
5964
5998
  throw x;
5965
5999
  task.replay.pendingTasks--;
5966
- children = getThrownInfo(request$jscomp$0, task.componentStack);
6000
+ children = getThrownInfo(task.componentStack);
5967
6001
  erroredReplay(
5968
6002
  request$jscomp$0,
5969
6003
  task.blockedBoundary,
@@ -5979,6 +6013,7 @@
5979
6013
  }
5980
6014
  }
5981
6015
  task.keyPath = prevKeyPath;
6016
+ task.componentStack = previousComponentStack;
5982
6017
  return;
5983
6018
  }
5984
6019
  replay = task.treeContext;
@@ -6004,6 +6039,7 @@
6004
6039
  }
6005
6040
  task.treeContext = replay;
6006
6041
  task.keyPath = prevKeyPath;
6042
+ task.componentStack = previousComponentStack;
6007
6043
  return;
6008
6044
  }
6009
6045
  for (j = 0; j < replayNodes; j++) {
@@ -6097,6 +6133,7 @@
6097
6133
  }
6098
6134
  task.treeContext = replay;
6099
6135
  task.keyPath = prevKeyPath;
6136
+ task.componentStack = previousComponentStack;
6100
6137
  }
6101
6138
  function untrackBoundary(request, boundary) {
6102
6139
  request = request.trackedPostpones;
@@ -6109,7 +6146,6 @@
6109
6146
  }
6110
6147
  function renderNode(request, task, node, childIndex) {
6111
6148
  var previousFormatContext = task.formatContext,
6112
- previousLegacyContext = task.legacyContext,
6113
6149
  previousContext = task.context,
6114
6150
  previousKeyPath = task.keyPath,
6115
6151
  previousTreeContext = task.treeContext,
@@ -6141,7 +6177,6 @@
6141
6177
  task.abortSet,
6142
6178
  task.keyPath,
6143
6179
  task.formatContext,
6144
- task.legacyContext,
6145
6180
  task.context,
6146
6181
  task.treeContext,
6147
6182
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -6149,7 +6184,6 @@
6149
6184
  ).ping;
6150
6185
  node.then(request, request);
6151
6186
  task.formatContext = previousFormatContext;
6152
- task.legacyContext = previousLegacyContext;
6153
6187
  task.context = previousContext;
6154
6188
  task.keyPath = previousKeyPath;
6155
6189
  task.treeContext = previousTreeContext;
@@ -6199,7 +6233,6 @@
6199
6233
  task.abortSet,
6200
6234
  task.keyPath,
6201
6235
  task.formatContext,
6202
- task.legacyContext,
6203
6236
  task.context,
6204
6237
  task.treeContext,
6205
6238
  null !== task.componentStack ? task.componentStack.parent : null,
@@ -6207,7 +6240,6 @@
6207
6240
  ).ping;
6208
6241
  node.then(request, request);
6209
6242
  task.formatContext = previousFormatContext;
6210
- task.legacyContext = previousLegacyContext;
6211
6243
  task.context = previousContext;
6212
6244
  task.keyPath = previousKeyPath;
6213
6245
  task.treeContext = previousTreeContext;
@@ -6218,7 +6250,6 @@
6218
6250
  }
6219
6251
  }
6220
6252
  task.formatContext = previousFormatContext;
6221
- task.legacyContext = previousLegacyContext;
6222
6253
  task.context = previousContext;
6223
6254
  task.keyPath = previousKeyPath;
6224
6255
  task.treeContext = previousTreeContext;
@@ -6349,7 +6380,7 @@
6349
6380
  boundary.pendingTasks--,
6350
6381
  boundary.status !== CLIENT_RENDERED &&
6351
6382
  ((boundary.status = CLIENT_RENDERED),
6352
- (task = getThrownInfo(request, task.componentStack)),
6383
+ (task = getThrownInfo(task.componentStack)),
6353
6384
  (segment = logRecoverableError(request, error, task)),
6354
6385
  encodeErrorForBoundary(boundary, segment, error, task, !0),
6355
6386
  untrackBoundary(request, boundary),
@@ -6560,10 +6591,7 @@
6560
6591
  } else {
6561
6592
  request.replay.pendingTasks--;
6562
6593
  request.abortSet.delete(request);
6563
- var errorInfo = getThrownInfo(
6564
- request$jscomp$0,
6565
- request.componentStack
6566
- );
6594
+ var errorInfo = getThrownInfo(request.componentStack);
6567
6595
  erroredReplay(
6568
6596
  request$jscomp$0,
6569
6597
  request.blockedBoundary,
@@ -6632,7 +6660,6 @@
6632
6660
  task$jscomp$0.componentStack.parent);
6633
6661
  } else {
6634
6662
  var errorInfo$jscomp$0 = getThrownInfo(
6635
- request,
6636
6663
  task$jscomp$0.componentStack
6637
6664
  );
6638
6665
  task$jscomp$0.abortSet.delete(task$jscomp$0);
@@ -8761,11 +8788,11 @@
8761
8788
  didWarnAboutMaps = !1;
8762
8789
  (function () {
8763
8790
  var isomorphicReactPackageVersion = React.version;
8764
- if ("19.0.0-rc-100dfd7dab-20240701" !== isomorphicReactPackageVersion)
8791
+ if ("19.0.0-rc-3da26163a3-20240704" !== isomorphicReactPackageVersion)
8765
8792
  throw Error(
8766
8793
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
8767
8794
  (isomorphicReactPackageVersion +
8768
- "\n - react-dom: 19.0.0-rc-100dfd7dab-20240701\nLearn more: https://react.dev/warnings/version-mismatch")
8795
+ "\n - react-dom: 19.0.0-rc-3da26163a3-20240704\nLearn more: https://react.dev/warnings/version-mismatch")
8769
8796
  );
8770
8797
  })();
8771
8798
  exports.renderToReadableStream = function (children, options) {
@@ -8858,5 +8885,5 @@
8858
8885
  startWork(request$jscomp$0);
8859
8886
  });
8860
8887
  };
8861
- exports.version = "19.0.0-rc-100dfd7dab-20240701";
8888
+ exports.version = "19.0.0-rc-3da26163a3-20240704";
8862
8889
  })();