react-markup 0.0.0-experimental-c4676e72-20250520 → 0.0.0-experimental-23884812-20250520

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.
@@ -3778,6 +3778,10 @@
3778
3778
  function hoistStylesheetDependency(stylesheet) {
3779
3779
  this.stylesheets.add(stylesheet);
3780
3780
  }
3781
+ function hoistHoistables(parentState, childState) {
3782
+ childState.styles.forEach(hoistStyleQueueDependency, parentState);
3783
+ childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
3784
+ }
3781
3785
  function getComponentNameFromType(type) {
3782
3786
  if (null == type) return null;
3783
3787
  if ("function" === typeof type)
@@ -4660,11 +4664,14 @@
4660
4664
  };
4661
4665
  null !== row &&
4662
4666
  (row.pendingTasks++,
4663
- (row = row.boundaries),
4664
- null !== row &&
4667
+ (contentPreamble = row.boundaries),
4668
+ null !== contentPreamble &&
4665
4669
  (request.allPendingTasks++,
4666
4670
  fallbackAbortableTasks.pendingTasks++,
4667
- row.push(fallbackAbortableTasks)));
4671
+ contentPreamble.push(fallbackAbortableTasks)),
4672
+ (request = row.inheritedHoistables),
4673
+ null !== request &&
4674
+ hoistHoistables(fallbackAbortableTasks.contentState, request));
4668
4675
  return fallbackAbortableTasks;
4669
4676
  }
4670
4677
  function createRenderTask(
@@ -4948,20 +4955,70 @@
4948
4955
  : ((request.status = 13), (request.fatalError = error));
4949
4956
  }
4950
4957
  function finishSuspenseListRow(request, row) {
4951
- for (row = row.next; null !== row; ) {
4952
- var unblockedBoundaries = row.boundaries;
4958
+ unblockSuspenseListRow(request, row.next, row.hoistables);
4959
+ }
4960
+ function unblockSuspenseListRow(
4961
+ request,
4962
+ unblockedRow,
4963
+ inheritedHoistables
4964
+ ) {
4965
+ for (; null !== unblockedRow; ) {
4966
+ null !== inheritedHoistables &&
4967
+ (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
4968
+ (unblockedRow.inheritedHoistables = inheritedHoistables));
4969
+ var unblockedBoundaries = unblockedRow.boundaries;
4953
4970
  if (null !== unblockedBoundaries) {
4954
- row.boundaries = null;
4955
- for (var i = 0; i < unblockedBoundaries.length; i++)
4956
- finishedTask(request, unblockedBoundaries[i], null, null);
4971
+ unblockedRow.boundaries = null;
4972
+ for (var i = 0; i < unblockedBoundaries.length; i++) {
4973
+ var unblockedBoundary = unblockedBoundaries[i];
4974
+ null !== inheritedHoistables &&
4975
+ hoistHoistables(
4976
+ unblockedBoundary.contentState,
4977
+ inheritedHoistables
4978
+ );
4979
+ finishedTask(request, unblockedBoundary, null, null);
4980
+ }
4957
4981
  }
4958
- row.pendingTasks--;
4959
- if (0 < row.pendingTasks) break;
4960
- row = row.next;
4982
+ unblockedRow.pendingTasks--;
4983
+ if (0 < unblockedRow.pendingTasks) break;
4984
+ inheritedHoistables = unblockedRow.hoistables;
4985
+ unblockedRow = unblockedRow.next;
4986
+ }
4987
+ }
4988
+ function tryToResolveTogetherRow(request, togetherRow) {
4989
+ var boundaries = togetherRow.boundaries;
4990
+ if (
4991
+ null !== boundaries &&
4992
+ togetherRow.pendingTasks === boundaries.length
4993
+ ) {
4994
+ for (
4995
+ var allCompleteAndInlinable = !0, i = 0;
4996
+ i < boundaries.length;
4997
+ i++
4998
+ ) {
4999
+ var rowBoundary = boundaries[i];
5000
+ if (
5001
+ 1 !== rowBoundary.pendingTasks ||
5002
+ rowBoundary.parentFlushed ||
5003
+ 500 < rowBoundary.byteSize
5004
+ ) {
5005
+ allCompleteAndInlinable = !1;
5006
+ break;
5007
+ }
5008
+ }
5009
+ allCompleteAndInlinable &&
5010
+ unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
4961
5011
  }
4962
5012
  }
4963
5013
  function createSuspenseListRow(previousRow) {
4964
- var newRow = { pendingTasks: 1, boundaries: null, next: null };
5014
+ var newRow = {
5015
+ pendingTasks: 1,
5016
+ boundaries: null,
5017
+ hoistables: createHoistableState(),
5018
+ inheritedHoistables: null,
5019
+ together: !1,
5020
+ next: null
5021
+ };
4965
5022
  null !== previousRow &&
4966
5023
  0 < previousRow.pendingTasks &&
4967
5024
  (newRow.pendingTasks++,
@@ -4970,28 +5027,25 @@
4970
5027
  return newRow;
4971
5028
  }
4972
5029
  function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
4973
- keyPath = task.keyPath;
4974
- var previousComponentStack = task.componentStack;
5030
+ var prevKeyPath = task.keyPath,
5031
+ prevTreeContext = task.treeContext,
5032
+ prevRow = task.row,
5033
+ previousComponentStack = task.componentStack;
4975
5034
  var previousDebugTask = task.debugTask;
4976
5035
  pushServerComponentStack(task, task.node.props.children._debugInfo);
4977
- var prevTreeContext = task.treeContext,
4978
- prevRow = task.row,
4979
- totalChildren = rows.length,
4980
- previousSuspenseListRow = null;
5036
+ task.keyPath = keyPath;
5037
+ keyPath = rows.length;
5038
+ var previousSuspenseListRow = null;
4981
5039
  if (null !== task.replay) {
4982
5040
  var resumeSlots = task.replay.slots;
4983
5041
  if (null !== resumeSlots && "object" === typeof resumeSlots)
4984
- for (var n = 0; n < totalChildren; n++) {
4985
- var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
5042
+ for (var n = 0; n < keyPath; n++) {
5043
+ var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
4986
5044
  node = rows[i];
4987
5045
  task.row = previousSuspenseListRow = createSuspenseListRow(
4988
5046
  previousSuspenseListRow
4989
5047
  );
4990
- task.treeContext = pushTreeContext(
4991
- prevTreeContext,
4992
- totalChildren,
4993
- i
4994
- );
5048
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
4995
5049
  var resumeSegmentID = resumeSlots[i];
4996
5050
  "number" === typeof resumeSegmentID
4997
5051
  ? (resumeNode(request, task, resumeSegmentID, node, i),
@@ -5001,32 +5055,28 @@
5001
5055
  finishSuspenseListRow(request, previousSuspenseListRow);
5002
5056
  }
5003
5057
  else
5004
- for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
5058
+ for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
5005
5059
  (n =
5006
5060
  "backwards" !== revealOrder
5007
5061
  ? resumeSlots
5008
- : totalChildren - 1 - resumeSlots),
5062
+ : keyPath - 1 - resumeSlots),
5009
5063
  (i = rows[n]),
5010
5064
  warnForMissingKey(request, task, i),
5011
5065
  (task.row = previousSuspenseListRow =
5012
5066
  createSuspenseListRow(previousSuspenseListRow)),
5013
- (task.treeContext = pushTreeContext(
5014
- prevTreeContext,
5015
- totalChildren,
5016
- n
5017
- )),
5067
+ (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
5018
5068
  renderNode(request, task, i, n),
5019
5069
  0 === --previousSuspenseListRow.pendingTasks &&
5020
5070
  finishSuspenseListRow(request, previousSuspenseListRow);
5021
5071
  } else if ("backwards" !== revealOrder)
5022
- for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
5072
+ for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
5023
5073
  (resumeSlots = rows[revealOrder]),
5024
5074
  warnForMissingKey(request, task, resumeSlots),
5025
5075
  (task.row = previousSuspenseListRow =
5026
5076
  createSuspenseListRow(previousSuspenseListRow)),
5027
5077
  (task.treeContext = pushTreeContext(
5028
5078
  prevTreeContext,
5029
- totalChildren,
5079
+ keyPath,
5030
5080
  revealOrder
5031
5081
  )),
5032
5082
  renderNode(request, task, resumeSlots, revealOrder),
@@ -5036,12 +5086,12 @@
5036
5086
  revealOrder = task.blockedSegment;
5037
5087
  resumeSlots = revealOrder.children.length;
5038
5088
  n = revealOrder.chunks.length;
5039
- for (i = totalChildren - 1; 0 <= i; i--) {
5089
+ for (i = keyPath - 1; 0 <= i; i--) {
5040
5090
  node = rows[i];
5041
5091
  task.row = previousSuspenseListRow = createSuspenseListRow(
5042
5092
  previousSuspenseListRow
5043
5093
  );
5044
- task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
5094
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
5045
5095
  resumeSegmentID = createPendingSegment(
5046
5096
  request,
5047
5097
  n,
@@ -5074,7 +5124,7 @@
5074
5124
  (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
5075
5125
  task.treeContext = prevTreeContext;
5076
5126
  task.row = prevRow;
5077
- task.keyPath = keyPath;
5127
+ task.keyPath = prevKeyPath;
5078
5128
  task.componentStack = previousComponentStack;
5079
5129
  task.debugTask = previousDebugTask;
5080
5130
  }
@@ -5641,7 +5691,7 @@
5641
5691
  );
5642
5692
  segment.lastPushedText = !1;
5643
5693
  var _prevContext2 = task.formatContext,
5644
- _prevKeyPath2 = task.keyPath;
5694
+ _prevKeyPath3 = task.keyPath;
5645
5695
  task.keyPath = keyPath;
5646
5696
  if (
5647
5697
  3 ===
@@ -5683,7 +5733,7 @@
5683
5733
  request.pingedTasks.push(preambleTask);
5684
5734
  } else renderNode(request, task, _children, -1);
5685
5735
  task.formatContext = _prevContext2;
5686
- task.keyPath = _prevKeyPath2;
5736
+ task.keyPath = _prevKeyPath3;
5687
5737
  a: {
5688
5738
  var target$jscomp$0 = segment.chunks,
5689
5739
  resumableState$jscomp$0 = request.resumableState;
@@ -5748,10 +5798,10 @@
5748
5798
  }
5749
5799
  } else if ("hidden" !== props.mode) {
5750
5800
  segment$jscomp$0.lastPushedText = !1;
5751
- var _prevKeyPath3 = task.keyPath;
5801
+ var _prevKeyPath4 = task.keyPath;
5752
5802
  task.keyPath = keyPath;
5753
5803
  renderNode(request, task, props.children, -1);
5754
- task.keyPath = _prevKeyPath3;
5804
+ task.keyPath = _prevKeyPath4;
5755
5805
  segment$jscomp$0.lastPushedText = !1;
5756
5806
  }
5757
5807
  return;
@@ -5844,10 +5894,27 @@
5844
5894
  }
5845
5895
  }
5846
5896
  }
5847
- var prevKeyPath$jscomp$3 = task.keyPath;
5848
- task.keyPath = keyPath;
5849
- renderNodeDestructive(request, task, children$jscomp$0, -1);
5850
- task.keyPath = prevKeyPath$jscomp$3;
5897
+ if ("together" === revealOrder) {
5898
+ var _prevKeyPath2 = task.keyPath,
5899
+ prevRow = task.row,
5900
+ newRow = (task.row = createSuspenseListRow(null));
5901
+ newRow.boundaries = [];
5902
+ newRow.together = !0;
5903
+ task.keyPath = keyPath;
5904
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5905
+ 0 === --newRow.pendingTasks &&
5906
+ finishSuspenseListRow(request, newRow);
5907
+ task.keyPath = _prevKeyPath2;
5908
+ task.row = prevRow;
5909
+ null !== prevRow &&
5910
+ 0 < newRow.pendingTasks &&
5911
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
5912
+ } else {
5913
+ var prevKeyPath$jscomp$3 = task.keyPath;
5914
+ task.keyPath = keyPath;
5915
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5916
+ task.keyPath = prevKeyPath$jscomp$3;
5917
+ }
5851
5918
  }
5852
5919
  return;
5853
5920
  case REACT_VIEW_TRANSITION_TYPE:
@@ -5897,7 +5964,7 @@
5897
5964
  } else {
5898
5965
  var prevKeyPath$jscomp$5 = task.keyPath,
5899
5966
  prevContext$jscomp$1 = task.formatContext,
5900
- prevRow = task.row,
5967
+ prevRow$jscomp$0 = task.row,
5901
5968
  parentBoundary = task.blockedBoundary,
5902
5969
  parentPreamble = task.blockedPreamble,
5903
5970
  parentHoistableState = task.hoistableState,
@@ -6022,18 +6089,23 @@
6022
6089
  (renderNode(request, task, content, -1),
6023
6090
  (contentRootSegment.status = 1),
6024
6091
  queueCompletedSegment(newBoundary, contentRootSegment),
6025
- 0 === newBoundary.pendingTasks &&
6026
- 0 === newBoundary.status &&
6027
- ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
6092
+ 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
6028
6093
  ) {
6029
- null !== prevRow &&
6030
- 0 === --prevRow.pendingTasks &&
6031
- finishSuspenseListRow(request, prevRow);
6032
- 0 === request.pendingRootTasks &&
6033
- task.blockedPreamble &&
6034
- preparePreamble(request);
6035
- break a;
6036
- }
6094
+ if (
6095
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize))
6096
+ ) {
6097
+ null !== prevRow$jscomp$0 &&
6098
+ 0 === --prevRow$jscomp$0.pendingTasks &&
6099
+ finishSuspenseListRow(request, prevRow$jscomp$0);
6100
+ 0 === request.pendingRootTasks &&
6101
+ task.blockedPreamble &&
6102
+ preparePreamble(request);
6103
+ break a;
6104
+ }
6105
+ } else
6106
+ null !== prevRow$jscomp$0 &&
6107
+ prevRow$jscomp$0.together &&
6108
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
6037
6109
  } catch (thrownValue$2) {
6038
6110
  newBoundary.status = 4;
6039
6111
  if (12 === request.status) {
@@ -6076,7 +6148,7 @@
6076
6148
  (task.blockedSegment = parentSegment),
6077
6149
  (task.keyPath = prevKeyPath$jscomp$5),
6078
6150
  (task.formatContext = prevContext$jscomp$1),
6079
- (task.row = prevRow);
6151
+ (task.row = prevRow$jscomp$0);
6080
6152
  }
6081
6153
  var suspendedFallbackTask = createRenderTask(
6082
6154
  request,
@@ -7219,10 +7291,6 @@
7219
7291
  if (6 === segment.status) return;
7220
7292
  segment.status = 3;
7221
7293
  }
7222
- var row = task.row;
7223
- null !== row &&
7224
- 0 === --row.pendingTasks &&
7225
- finishSuspenseListRow(request, row);
7226
7294
  var errorInfo = getThrownInfo(task.componentStack);
7227
7295
  if (null === boundary) {
7228
7296
  if (13 !== request.status && 14 !== request.status) {
@@ -7235,7 +7303,7 @@
7235
7303
  null !== boundary && null !== segment
7236
7304
  ? (logPostpone(request, error.message, errorInfo, null),
7237
7305
  trackPostpone(request, boundary, task, segment),
7238
- finishedTask(request, null, row, segment))
7306
+ finishedTask(request, null, task.row, segment))
7239
7307
  : ((task = Error(
7240
7308
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
7241
7309
  error.message
@@ -7246,7 +7314,7 @@
7246
7314
  ? ((boundary = request.trackedPostpones),
7247
7315
  logRecoverableError(request, error, errorInfo, null),
7248
7316
  trackPostpone(request, boundary, task, segment),
7249
- finishedTask(request, null, row, segment))
7317
+ finishedTask(request, null, task.row, segment))
7250
7318
  : (logRecoverableError(request, error, errorInfo, null),
7251
7319
  fatalError(request, error, errorInfo, null));
7252
7320
  return;
@@ -7258,15 +7326,20 @@
7258
7326
  null !== error &&
7259
7327
  error.$$typeof === REACT_POSTPONE_TYPE
7260
7328
  ? (logPostpone(request, error.message, errorInfo, null),
7261
- (task = "POSTPONE"))
7262
- : (task = logRecoverableError(request, error, errorInfo, null)),
7329
+ (segment = "POSTPONE"))
7330
+ : (segment = logRecoverableError(
7331
+ request,
7332
+ error,
7333
+ errorInfo,
7334
+ null
7335
+ )),
7263
7336
  abortRemainingReplayNodes(
7264
7337
  request,
7265
7338
  null,
7266
7339
  boundary.nodes,
7267
7340
  boundary.slots,
7268
7341
  error,
7269
- task,
7342
+ segment,
7270
7343
  errorInfo,
7271
7344
  !0
7272
7345
  ));
@@ -7274,7 +7347,6 @@
7274
7347
  0 === request.pendingRootTasks && completeShell(request);
7275
7348
  }
7276
7349
  } else {
7277
- boundary.pendingTasks--;
7278
7350
  var _trackedPostpones2 = request.trackedPostpones;
7279
7351
  if (4 !== boundary.status) {
7280
7352
  if (null !== _trackedPostpones2 && null !== segment)
@@ -7289,7 +7361,7 @@
7289
7361
  return abortTask(fallbackTask, request, error);
7290
7362
  }),
7291
7363
  boundary.fallbackAbortableTasks.clear(),
7292
- finishedTask(request, boundary, row, segment)
7364
+ finishedTask(request, boundary, task.row, segment)
7293
7365
  );
7294
7366
  boundary.status = 4;
7295
7367
  if (
@@ -7300,26 +7372,35 @@
7300
7372
  logPostpone(request, error.message, errorInfo, null);
7301
7373
  if (null !== request.trackedPostpones && null !== segment) {
7302
7374
  trackPostpone(request, request.trackedPostpones, task, segment);
7303
- finishedTask(request, task.blockedBoundary, row, segment);
7375
+ finishedTask(request, task.blockedBoundary, task.row, segment);
7304
7376
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7305
7377
  return abortTask(fallbackTask, request, error);
7306
7378
  });
7307
7379
  boundary.fallbackAbortableTasks.clear();
7308
7380
  return;
7309
7381
  }
7310
- task = "POSTPONE";
7311
- } else task = logRecoverableError(request, error, errorInfo, null);
7382
+ segment = "POSTPONE";
7383
+ } else segment = logRecoverableError(request, error, errorInfo, null);
7312
7384
  boundary.status = 4;
7313
- encodeErrorForBoundary(boundary, task, error, errorInfo, !0);
7385
+ encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
7314
7386
  untrackBoundary(request, boundary);
7315
7387
  boundary.parentFlushed &&
7316
7388
  request.clientRenderedBoundaries.push(boundary);
7317
7389
  }
7390
+ boundary.pendingTasks--;
7391
+ errorInfo = boundary.row;
7392
+ null !== errorInfo &&
7393
+ 0 === --errorInfo.pendingTasks &&
7394
+ finishSuspenseListRow(request, errorInfo);
7318
7395
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7319
7396
  return abortTask(fallbackTask, request, error);
7320
7397
  });
7321
7398
  boundary.fallbackAbortableTasks.clear();
7322
7399
  }
7400
+ task = task.row;
7401
+ null !== task &&
7402
+ 0 === --task.pendingTasks &&
7403
+ finishSuspenseListRow(request, task);
7323
7404
  request.allPendingTasks--;
7324
7405
  0 === request.allPendingTasks && completeAll(request);
7325
7406
  }
@@ -7423,8 +7504,9 @@
7423
7504
  }
7424
7505
  function finishedTask(request, boundary, row, segment) {
7425
7506
  null !== row &&
7426
- 0 === --row.pendingTasks &&
7427
- finishSuspenseListRow(request, row);
7507
+ (0 === --row.pendingTasks
7508
+ ? finishSuspenseListRow(request, row)
7509
+ : row.together && tryToResolveTogetherRow(request, row));
7428
7510
  request.allPendingTasks--;
7429
7511
  if (null === boundary) {
7430
7512
  if (null !== segment && segment.parentFlushed) {
@@ -7448,13 +7530,15 @@
7448
7530
  boundary.parentFlushed &&
7449
7531
  request.completedBoundaries.push(boundary),
7450
7532
  1 === boundary.status &&
7451
- (500 < boundary.byteSize ||
7533
+ ((row = boundary.row),
7534
+ null !== row &&
7535
+ hoistHoistables(row.hoistables, boundary.contentState),
7536
+ 500 < boundary.byteSize ||
7452
7537
  (boundary.fallbackAbortableTasks.forEach(
7453
7538
  abortTaskSoft,
7454
7539
  request
7455
7540
  ),
7456
7541
  boundary.fallbackAbortableTasks.clear(),
7457
- (row = boundary.row),
7458
7542
  null !== row &&
7459
7543
  0 === --row.pendingTasks &&
7460
7544
  finishSuspenseListRow(request, row)),
@@ -7462,13 +7546,17 @@
7462
7546
  null === request.trackedPostpones &&
7463
7547
  null !== boundary.contentPreamble &&
7464
7548
  preparePreamble(request)))
7465
- : null !== segment &&
7466
- segment.parentFlushed &&
7467
- 1 === segment.status &&
7468
- (queueCompletedSegment(boundary, segment),
7469
- 1 === boundary.completedSegments.length &&
7470
- boundary.parentFlushed &&
7471
- request.partialBoundaries.push(boundary)));
7549
+ : (null !== segment &&
7550
+ segment.parentFlushed &&
7551
+ 1 === segment.status &&
7552
+ (queueCompletedSegment(boundary, segment),
7553
+ 1 === boundary.completedSegments.length &&
7554
+ boundary.parentFlushed &&
7555
+ request.partialBoundaries.push(boundary)),
7556
+ (boundary = boundary.row),
7557
+ null !== boundary &&
7558
+ boundary.together &&
7559
+ tryToResolveTogetherRow(request, boundary)));
7472
7560
  0 === request.allPendingTasks && completeAll(request);
7473
7561
  }
7474
7562
  function performWork(request$jscomp$1) {
@@ -7701,30 +7789,36 @@
7701
7789
  errorInfo$jscomp$0,
7702
7790
  debugTask
7703
7791
  ));
7704
- null === boundary
7705
- ? fatalError(
7706
- request,
7707
- x$jscomp$0,
7708
- errorInfo$jscomp$0,
7709
- debugTask
7710
- )
7711
- : (boundary.pendingTasks--,
7712
- 4 !== boundary.status &&
7713
- ((boundary.status = 4),
7714
- encodeErrorForBoundary(
7715
- boundary,
7716
- prevTaskInDEV,
7717
- x$jscomp$0,
7718
- errorInfo$jscomp$0,
7719
- !1
7720
- ),
7721
- untrackBoundary(request, boundary),
7722
- boundary.parentFlushed &&
7723
- request.clientRenderedBoundaries.push(boundary),
7724
- 0 === request.pendingRootTasks &&
7725
- null === request.trackedPostpones &&
7726
- null !== boundary.contentPreamble &&
7727
- preparePreamble(request)));
7792
+ if (null === boundary)
7793
+ fatalError(
7794
+ request,
7795
+ x$jscomp$0,
7796
+ errorInfo$jscomp$0,
7797
+ debugTask
7798
+ );
7799
+ else if (
7800
+ (boundary.pendingTasks--, 4 !== boundary.status)
7801
+ ) {
7802
+ boundary.status = 4;
7803
+ encodeErrorForBoundary(
7804
+ boundary,
7805
+ prevTaskInDEV,
7806
+ x$jscomp$0,
7807
+ errorInfo$jscomp$0,
7808
+ !1
7809
+ );
7810
+ untrackBoundary(request, boundary);
7811
+ var boundaryRow = boundary.row;
7812
+ null !== boundaryRow &&
7813
+ 0 === --boundaryRow.pendingTasks &&
7814
+ finishSuspenseListRow(request, boundaryRow);
7815
+ boundary.parentFlushed &&
7816
+ request.clientRenderedBoundaries.push(boundary);
7817
+ 0 === request.pendingRootTasks &&
7818
+ null === request.trackedPostpones &&
7819
+ null !== boundary.contentPreamble &&
7820
+ preparePreamble(request);
7821
+ }
7728
7822
  0 === request.allPendingTasks && completeAll(request);
7729
7823
  }
7730
7824
  } finally {
@@ -7895,12 +7989,7 @@
7895
7989
  boundary.rootSegmentID
7896
7990
  ),
7897
7991
  hoistableState &&
7898
- ((boundary = boundary.fallbackState),
7899
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7900
- boundary.stylesheets.forEach(
7901
- hoistStylesheetDependency,
7902
- hoistableState
7903
- )),
7992
+ hoistHoistables(hoistableState, boundary.fallbackState),
7904
7993
  flushSubtree(request, destination, segment, hoistableState),
7905
7994
  destination.push("\x3c!--/$--\x3e")
7906
7995
  );
@@ -7920,10 +8009,7 @@
7920
8009
  destination.push("\x3c!--/$--\x3e")
7921
8010
  );
7922
8011
  flushedByteSize += boundary.byteSize;
7923
- hoistableState &&
7924
- ((segment = boundary.contentState),
7925
- segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
7926
- segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
8012
+ hoistableState && hoistHoistables(hoistableState, boundary.contentState);
7927
8013
  segment = boundary.row;
7928
8014
  null !== segment &&
7929
8015
  500 < boundary.byteSize &&
@@ -8381,6 +8467,17 @@
8381
8467
  break a;
8382
8468
  }
8383
8469
  completedSegments.splice(0, JSCompiler_inline_result);
8470
+ var row = boundary$jscomp$0.row;
8471
+ null !== row &&
8472
+ row.together &&
8473
+ 1 === boundary$jscomp$0.pendingTasks &&
8474
+ (1 === row.pendingTasks
8475
+ ? unblockSuspenseListRow(
8476
+ clientRenderedBoundaries,
8477
+ row,
8478
+ row.hoistables
8479
+ )
8480
+ : row.pendingTasks--);
8384
8481
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8385
8482
  boundary,
8386
8483
  boundary$jscomp$0.contentState,
@@ -9513,5 +9610,5 @@
9513
9610
  });
9514
9611
  });
9515
9612
  };
9516
- exports.version = "19.2.0-experimental-c4676e72-20250520";
9613
+ exports.version = "19.2.0-experimental-23884812-20250520";
9517
9614
  })();