react-markup 0.0.0-experimental-5d87cd22-20250704 → 0.0.0-experimental-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.
@@ -4881,14 +4881,16 @@
4881
4881
  if ("number" === typeof info.time) break;
4882
4882
  if (null != info.awaited) {
4883
4883
  var bestStack = null == info.debugStack ? info.awaited : info;
4884
- void 0 !== bestStack.debugStack &&
4885
- ((task.componentStack = {
4884
+ if (void 0 !== bestStack.debugStack) {
4885
+ task.componentStack = {
4886
4886
  parent: task.componentStack,
4887
4887
  type: info,
4888
4888
  owner: bestStack.owner,
4889
4889
  stack: bestStack.debugStack
4890
- }),
4891
- (task.debugTask = bestStack.debugTask));
4890
+ };
4891
+ task.debugTask = bestStack.debugTask;
4892
+ break;
4893
+ }
4892
4894
  }
4893
4895
  }
4894
4896
  }
@@ -4932,6 +4934,18 @@
4932
4934
  pushServerComponentStack(task, node._debugInfo);
4933
4935
  }
4934
4936
  }
4937
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
4938
+ componentStack
4939
+ ) {
4940
+ return null === componentStack
4941
+ ? null
4942
+ : {
4943
+ parent: componentStack.parent,
4944
+ type: "Suspense Fallback",
4945
+ owner: componentStack.owner,
4946
+ stack: componentStack.stack
4947
+ };
4948
+ }
4935
4949
  function getThrownInfo(node$jscomp$0) {
4936
4950
  var errorInfo = {};
4937
4951
  node$jscomp$0 &&
@@ -5777,27 +5791,14 @@
5777
5791
  !1
5778
5792
  );
5779
5793
  segment.preambleChildren.push(preambleSegment);
5780
- var preambleTask = createRenderTask(
5781
- request,
5782
- null,
5783
- _children,
5784
- -1,
5785
- task.blockedBoundary,
5786
- preambleSegment,
5787
- task.blockedPreamble,
5788
- task.hoistableState,
5789
- request.abortableTasks,
5790
- task.keyPath,
5791
- task.formatContext,
5792
- task.context,
5793
- task.treeContext,
5794
- task.row,
5795
- task.componentStack,
5796
- emptyContextObject,
5797
- task.debugTask
5798
- );
5799
- pushComponentStack(preambleTask);
5800
- request.pingedTasks.push(preambleTask);
5794
+ task.blockedSegment = preambleSegment;
5795
+ try {
5796
+ (preambleSegment.status = 6),
5797
+ renderNode(request, task, _children, -1),
5798
+ (preambleSegment.status = 1);
5799
+ } finally {
5800
+ task.blockedSegment = segment;
5801
+ }
5801
5802
  } else renderNode(request, task, _children, -1);
5802
5803
  task.formatContext = _prevContext2;
5803
5804
  task.keyPath = _prevKeyPath3;
@@ -6081,7 +6082,8 @@
6081
6082
  );
6082
6083
  contentRootSegment.parentFlushed = !0;
6083
6084
  if (null !== request.trackedPostpones) {
6084
- var fallbackKeyPath = [
6085
+ var suspenseComponentStack = task.componentStack,
6086
+ fallbackKeyPath = [
6085
6087
  keyPath[0],
6086
6088
  "Suspense Fallback",
6087
6089
  keyPath[2]
@@ -6104,6 +6106,10 @@
6104
6106
  request.resumableState,
6105
6107
  prevContext$jscomp$1
6106
6108
  );
6109
+ task.componentStack =
6110
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6111
+ suspenseComponentStack
6112
+ );
6107
6113
  boundarySegment.status = 6;
6108
6114
  try {
6109
6115
  renderNode(request, task, fallback, -1),
@@ -6137,7 +6143,7 @@
6137
6143
  task.context,
6138
6144
  task.treeContext,
6139
6145
  null,
6140
- task.componentStack,
6146
+ suspenseComponentStack,
6141
6147
  emptyContextObject,
6142
6148
  task.debugTask
6143
6149
  );
@@ -6239,7 +6245,9 @@
6239
6245
  task.context,
6240
6246
  task.treeContext,
6241
6247
  task.row,
6242
- task.componentStack,
6248
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6249
+ task.componentStack
6250
+ ),
6243
6251
  emptyContextObject,
6244
6252
  task.debugTask
6245
6253
  );
@@ -6568,7 +6576,9 @@
6568
6576
  task.context,
6569
6577
  task.treeContext,
6570
6578
  task.row,
6571
- task.componentStack,
6579
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6580
+ task.componentStack
6581
+ ),
6572
6582
  emptyContextObject,
6573
6583
  task.debugTask
6574
6584
  );
@@ -9782,5 +9792,5 @@
9782
9792
  });
9783
9793
  });
9784
9794
  };
9785
- exports.version = "19.2.0-experimental-5d87cd22-20250704";
9795
+ exports.version = "19.2.0-experimental-befc1246-20250708";
9786
9796
  })();
@@ -3790,6 +3790,13 @@ function pushComponentStack(task) {
3790
3790
  task.componentStack = { parent: task.componentStack, type: node.type };
3791
3791
  }
3792
3792
  }
3793
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
3794
+ componentStack
3795
+ ) {
3796
+ return null === componentStack
3797
+ ? null
3798
+ : { parent: componentStack.parent, type: "Suspense Fallback" };
3799
+ }
3793
3800
  function getThrownInfo(node$jscomp$0) {
3794
3801
  var errorInfo = {};
3795
3802
  node$jscomp$0 &&
@@ -4251,25 +4258,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
4251
4258
  !1
4252
4259
  );
4253
4260
  segment.preambleChildren.push(preambleSegment);
4254
- var preambleTask = createRenderTask(
4255
- request,
4256
- null,
4257
- JSCompiler_inline_result$jscomp$2,
4258
- -1,
4259
- task.blockedBoundary,
4260
- preambleSegment,
4261
- task.blockedPreamble,
4262
- task.hoistableState,
4263
- request.abortableTasks,
4264
- task.keyPath,
4265
- task.formatContext,
4266
- task.context,
4267
- task.treeContext,
4268
- task.row,
4269
- task.componentStack
4270
- );
4271
- pushComponentStack(preambleTask);
4272
- request.pingedTasks.push(preambleTask);
4261
+ task.blockedSegment = preambleSegment;
4262
+ try {
4263
+ (preambleSegment.status = 6),
4264
+ renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1),
4265
+ (preambleSegment.status = 1);
4266
+ } finally {
4267
+ task.blockedSegment = segment;
4268
+ }
4273
4269
  } else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
4274
4270
  task.formatContext = prevContext$34;
4275
4271
  task.keyPath = prevKeyPath$35;
@@ -4537,7 +4533,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4537
4533
  );
4538
4534
  contentRootSegment.parentFlushed = !0;
4539
4535
  if (null !== request.trackedPostpones) {
4540
- var fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
4536
+ var suspenseComponentStack = task.componentStack,
4537
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
4541
4538
  fallbackReplayNode = [
4542
4539
  fallbackKeyPath[1],
4543
4540
  fallbackKeyPath[2],
@@ -4556,6 +4553,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4556
4553
  request.resumableState,
4557
4554
  prevContext$jscomp$1
4558
4555
  );
4556
+ task.componentStack =
4557
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4558
+ suspenseComponentStack
4559
+ );
4559
4560
  boundarySegment.status = 6;
4560
4561
  try {
4561
4562
  renderNode(request, task, fallback, -1),
@@ -4589,7 +4590,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4589
4590
  task.context,
4590
4591
  task.treeContext,
4591
4592
  null,
4592
- task.componentStack
4593
+ suspenseComponentStack
4593
4594
  );
4594
4595
  pushComponentStack(suspendedPrimaryTask);
4595
4596
  request.pingedTasks.push(suspendedPrimaryTask);
@@ -4670,7 +4671,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
4670
4671
  task.context,
4671
4672
  task.treeContext,
4672
4673
  task.row,
4673
- task.componentStack
4674
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4675
+ task.componentStack
4676
+ )
4674
4677
  );
4675
4678
  pushComponentStack(suspendedFallbackTask);
4676
4679
  request.pingedTasks.push(suspendedFallbackTask);
@@ -4985,7 +4988,9 @@ function retryNode(request, task) {
4985
4988
  task.context,
4986
4989
  task.treeContext,
4987
4990
  task.row,
4988
- task.componentStack
4991
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
4992
+ task.componentStack
4993
+ )
4989
4994
  );
4990
4995
  pushComponentStack(task);
4991
4996
  request.pingedTasks.push(task);
@@ -6752,4 +6757,4 @@ exports.experimental_renderToHTML = function (children, options) {
6752
6757
  });
6753
6758
  });
6754
6759
  };
6755
- exports.version = "19.2.0-experimental-5d87cd22-20250704";
6760
+ exports.version = "19.2.0-experimental-befc1246-20250708";