react-dom 19.3.0-canary-67f7d47a-20251103 → 19.3.0-canary-dd048c3b-20251105

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,7 +3778,6 @@ function RequestInstance(
3778
3778
  onShellReady,
3779
3779
  onShellError,
3780
3780
  onFatalError,
3781
- onPostpone,
3782
3781
  formState
3783
3782
  ) {
3784
3783
  var abortSet = new Set();
@@ -3801,7 +3800,6 @@ function RequestInstance(
3801
3800
  this.partialBoundaries = [];
3802
3801
  this.trackedPostpones = null;
3803
3802
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
3804
- this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3805
3803
  this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3806
3804
  this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3807
3805
  this.onShellError = void 0 === onShellError ? noop : onShellError;
@@ -3819,7 +3817,6 @@ function createRequest(
3819
3817
  onShellReady,
3820
3818
  onShellError,
3821
3819
  onFatalError,
3822
- onPostpone,
3823
3820
  formState
3824
3821
  ) {
3825
3822
  resumableState = new RequestInstance(
@@ -3832,7 +3829,6 @@ function createRequest(
3832
3829
  onShellReady,
3833
3830
  onShellError,
3834
3831
  onFatalError,
3835
- onPostpone,
3836
3832
  formState
3837
3833
  );
3838
3834
  renderState = createPendingSegment(
@@ -4827,8 +4823,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4827
4823
  contentRootSegment.status = 3;
4828
4824
  var error = request.fatalError;
4829
4825
  } else (contentRootSegment.status = 4), (error = thrownValue$30);
4830
- var thrownInfo = getThrownInfo(task.componentStack);
4831
- var errorDigest = logRecoverableError(request, error, thrownInfo);
4826
+ var thrownInfo = getThrownInfo(task.componentStack),
4827
+ errorDigest = logRecoverableError(request, error, thrownInfo);
4832
4828
  newBoundary.errorDigest = errorDigest;
4833
4829
  untrackBoundary(request, newBoundary);
4834
4830
  } finally {
@@ -5016,12 +5012,12 @@ function retryNode(request, task) {
5016
5012
  name +
5017
5013
  ">. The tree doesn't match so React will fallback to client rendering."
5018
5014
  );
5019
- var childNodes = node$jscomp$0[2];
5020
- name = node$jscomp$0[3];
5021
- keyOrIndex = task.node;
5015
+ var childNodes = node$jscomp$0[2],
5016
+ childSlots = node$jscomp$0[3];
5017
+ name = task.node;
5022
5018
  task.replay = {
5023
5019
  nodes: childNodes,
5024
- slots: name,
5020
+ slots: childSlots,
5025
5021
  pendingTasks: 1
5026
5022
  };
5027
5023
  try {
@@ -5042,7 +5038,7 @@ function retryNode(request, task) {
5042
5038
  "function" === typeof x.then)
5043
5039
  )
5044
5040
  throw (
5045
- (task.node === keyOrIndex
5041
+ (task.node === name
5046
5042
  ? (task.replay = replay)
5047
5043
  : childIndex.splice(node, 1),
5048
5044
  x)
@@ -5057,7 +5053,7 @@ function retryNode(request, task) {
5057
5053
  key,
5058
5054
  request,
5059
5055
  childNodes,
5060
- name,
5056
+ childSlots,
5061
5057
  type,
5062
5058
  props
5063
5059
  );
@@ -5071,16 +5067,15 @@ function retryNode(request, task) {
5071
5067
  ">. The tree doesn't match so React will fallback to client rendering."
5072
5068
  );
5073
5069
  b: {
5074
- replay = void 0;
5075
- type = node$jscomp$0[5];
5076
- ref = node$jscomp$0[2];
5077
- name = node$jscomp$0[3];
5078
- keyOrIndex =
5070
+ replay = node$jscomp$0[5];
5071
+ type = node$jscomp$0[2];
5072
+ ref = node$jscomp$0[3];
5073
+ name =
5079
5074
  null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
5080
5075
  node$jscomp$0 =
5081
5076
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
5082
- var prevKeyPath = task.keyPath,
5083
- prevContext = task.formatContext,
5077
+ keyOrIndex = task.keyPath;
5078
+ var prevContext = task.formatContext,
5084
5079
  prevRow = task.row,
5085
5080
  previousReplaySet = task.replay,
5086
5081
  parentBoundary = task.blockedBoundary,
@@ -5096,7 +5091,7 @@ function retryNode(request, task) {
5096
5091
  null
5097
5092
  );
5098
5093
  props.parentFlushed = !0;
5099
- props.rootSegmentID = type;
5094
+ props.rootSegmentID = replay;
5100
5095
  task.blockedBoundary = props;
5101
5096
  task.hoistableState = props.contentState;
5102
5097
  task.keyPath = key;
@@ -5106,8 +5101,8 @@ function retryNode(request, task) {
5106
5101
  );
5107
5102
  task.row = null;
5108
5103
  task.replay = {
5109
- nodes: ref,
5110
- slots: name,
5104
+ nodes: type,
5105
+ slots: ref,
5111
5106
  pendingTasks: 1
5112
5107
  };
5113
5108
  try {
@@ -5128,30 +5123,26 @@ function retryNode(request, task) {
5128
5123
  } catch (error) {
5129
5124
  (props.status = 4),
5130
5125
  (childNodes = getThrownInfo(task.componentStack)),
5131
- (replay = logRecoverableError(
5126
+ (childSlots = logRecoverableError(
5132
5127
  request,
5133
5128
  error,
5134
5129
  childNodes
5135
5130
  )),
5136
- (props.errorDigest = replay),
5131
+ (props.errorDigest = childSlots),
5137
5132
  task.replay.pendingTasks--,
5138
5133
  request.clientRenderedBoundaries.push(props);
5139
5134
  } finally {
5140
5135
  (task.blockedBoundary = parentBoundary),
5141
5136
  (task.hoistableState = parentHoistableState),
5142
5137
  (task.replay = previousReplaySet),
5143
- (task.keyPath = prevKeyPath),
5138
+ (task.keyPath = keyOrIndex),
5144
5139
  (task.formatContext = prevContext),
5145
5140
  (task.row = prevRow);
5146
5141
  }
5147
5142
  childNodes = createReplayTask(
5148
5143
  request,
5149
5144
  null,
5150
- {
5151
- nodes: keyOrIndex,
5152
- slots: node$jscomp$0,
5153
- pendingTasks: 0
5154
- },
5145
+ { nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
5155
5146
  fallback,
5156
5147
  -1,
5157
5148
  parentBoundary,
@@ -5199,10 +5190,10 @@ function retryNode(request, task) {
5199
5190
  if ((childNodes = childNodes.call(node))) {
5200
5191
  node = childNodes.next();
5201
5192
  if (!node.done) {
5202
- props = [];
5203
- do props.push(node.value), (node = childNodes.next());
5193
+ childSlots = [];
5194
+ do childSlots.push(node.value), (node = childNodes.next());
5204
5195
  while (!node.done);
5205
- renderChildrenArray(request, task, props, childIndex);
5196
+ renderChildrenArray(request, task, childSlots, childIndex);
5206
5197
  }
5207
5198
  return;
5208
5199
  }
@@ -5899,38 +5890,37 @@ function finishedTask(request, boundary, row, segment) {
5899
5890
  tryToResolveTogetherRow(request, boundary);
5900
5891
  0 === request.allPendingTasks && completeAll(request);
5901
5892
  }
5902
- function performWork(request$jscomp$2) {
5903
- if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
5893
+ function performWork(request$jscomp$1) {
5894
+ if (14 !== request$jscomp$1.status && 13 !== request$jscomp$1.status) {
5904
5895
  var prevContext = currentActiveSnapshot,
5905
5896
  prevDispatcher = ReactSharedInternals.H;
5906
5897
  ReactSharedInternals.H = HooksDispatcher;
5907
5898
  var prevAsyncDispatcher = ReactSharedInternals.A;
5908
5899
  ReactSharedInternals.A = DefaultAsyncDispatcher;
5909
5900
  var prevRequest = currentRequest;
5910
- currentRequest = request$jscomp$2;
5901
+ currentRequest = request$jscomp$1;
5911
5902
  var prevResumableState = currentResumableState;
5912
- currentResumableState = request$jscomp$2.resumableState;
5903
+ currentResumableState = request$jscomp$1.resumableState;
5913
5904
  try {
5914
- var pingedTasks = request$jscomp$2.pingedTasks,
5905
+ var pingedTasks = request$jscomp$1.pingedTasks,
5915
5906
  i;
5916
5907
  for (i = 0; i < pingedTasks.length; i++) {
5917
5908
  var task = pingedTasks[i],
5918
- request = request$jscomp$2,
5909
+ request = request$jscomp$1,
5919
5910
  segment = task.blockedSegment;
5920
5911
  if (null === segment) {
5921
- var request$jscomp$0 = request;
5922
5912
  if (0 !== task.replay.pendingTasks) {
5923
5913
  switchContext(task.context);
5924
5914
  try {
5925
5915
  "number" === typeof task.replay.slots
5926
5916
  ? resumeNode(
5927
- request$jscomp$0,
5917
+ request,
5928
5918
  task,
5929
5919
  task.replay.slots,
5930
5920
  task.node,
5931
5921
  task.childIndex
5932
5922
  )
5933
- : retryNode(request$jscomp$0, task);
5923
+ : retryNode(request, task);
5934
5924
  if (
5935
5925
  1 === task.replay.pendingTasks &&
5936
5926
  0 < task.replay.nodes.length
@@ -5940,12 +5930,7 @@ function performWork(request$jscomp$2) {
5940
5930
  );
5941
5931
  task.replay.pendingTasks--;
5942
5932
  task.abortSet.delete(task);
5943
- finishedTask(
5944
- request$jscomp$0,
5945
- task.blockedBoundary,
5946
- task.row,
5947
- null
5948
- );
5933
+ finishedTask(request, task.blockedBoundary, task.row, null);
5949
5934
  } catch (thrownValue) {
5950
5935
  resetHooksState();
5951
5936
  var x =
@@ -5966,68 +5951,61 @@ function performWork(request$jscomp$2) {
5966
5951
  } else {
5967
5952
  task.replay.pendingTasks--;
5968
5953
  task.abortSet.delete(task);
5969
- var errorInfo = getThrownInfo(task.componentStack);
5970
- request = void 0;
5971
- var request$jscomp$1 = request$jscomp$0,
5954
+ var errorInfo = getThrownInfo(task.componentStack),
5955
+ request$jscomp$0 = request,
5972
5956
  boundary = task.blockedBoundary,
5973
5957
  error$jscomp$0 =
5974
- 12 === request$jscomp$0.status
5975
- ? request$jscomp$0.fatalError
5976
- : x,
5958
+ 12 === request.status ? request.fatalError : x,
5977
5959
  replayNodes = task.replay.nodes,
5978
- resumeSlots = task.replay.slots;
5979
- request = logRecoverableError(
5980
- request$jscomp$1,
5981
- error$jscomp$0,
5982
- errorInfo
5983
- );
5960
+ resumeSlots = task.replay.slots,
5961
+ errorDigest = logRecoverableError(
5962
+ request$jscomp$0,
5963
+ error$jscomp$0,
5964
+ errorInfo
5965
+ );
5984
5966
  abortRemainingReplayNodes(
5985
- request$jscomp$1,
5967
+ request$jscomp$0,
5986
5968
  boundary,
5987
5969
  replayNodes,
5988
5970
  resumeSlots,
5989
5971
  error$jscomp$0,
5990
- request
5972
+ errorDigest
5991
5973
  );
5992
- request$jscomp$0.pendingRootTasks--;
5993
- 0 === request$jscomp$0.pendingRootTasks &&
5994
- completeShell(request$jscomp$0);
5995
- request$jscomp$0.allPendingTasks--;
5996
- 0 === request$jscomp$0.allPendingTasks &&
5997
- completeAll(request$jscomp$0);
5974
+ request.pendingRootTasks--;
5975
+ 0 === request.pendingRootTasks && completeShell(request);
5976
+ request.allPendingTasks--;
5977
+ 0 === request.allPendingTasks && completeAll(request);
5998
5978
  }
5999
5979
  } finally {
6000
5980
  }
6001
5981
  }
6002
5982
  } else if (
6003
- ((request$jscomp$0 = void 0),
6004
- (request$jscomp$1 = segment),
6005
- 0 === request$jscomp$1.status)
5983
+ ((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
6006
5984
  ) {
6007
- request$jscomp$1.status = 6;
5985
+ request$jscomp$0.status = 6;
6008
5986
  switchContext(task.context);
6009
- var childrenLength = request$jscomp$1.children.length,
6010
- chunkLength = request$jscomp$1.chunks.length;
5987
+ var childrenLength = request$jscomp$0.children.length,
5988
+ chunkLength = request$jscomp$0.chunks.length;
6011
5989
  try {
6012
5990
  retryNode(request, task),
6013
5991
  pushSegmentFinale(
6014
- request$jscomp$1.chunks,
5992
+ request$jscomp$0.chunks,
6015
5993
  request.renderState,
6016
- request$jscomp$1.lastPushedText,
6017
- request$jscomp$1.textEmbedded
5994
+ request$jscomp$0.lastPushedText,
5995
+ request$jscomp$0.textEmbedded
6018
5996
  ),
6019
5997
  task.abortSet.delete(task),
6020
- (request$jscomp$1.status = 1),
5998
+ (request$jscomp$0.status = 1),
6021
5999
  finishedTask(
6022
6000
  request,
6023
6001
  task.blockedBoundary,
6024
6002
  task.row,
6025
- request$jscomp$1
6003
+ request$jscomp$0
6026
6004
  );
6027
6005
  } catch (thrownValue) {
6028
6006
  resetHooksState();
6029
- request$jscomp$1.children.length = childrenLength;
6030
- request$jscomp$1.chunks.length = chunkLength;
6007
+ request$jscomp$0.children.length = childrenLength;
6008
+ request$jscomp$0.chunks.length = chunkLength;
6031
6009
  var x$jscomp$0 =
6032
6010
  thrownValue === SuspenseException
6033
6011
  ? getSuspendedThenable()
@@ -6039,19 +6017,19 @@ function performWork(request$jscomp$2) {
6039
6017
  thrownInfo = getThrownInfo(task.componentStack);
6040
6018
  task.abortSet.delete(task);
6041
6019
  logRecoverableError(request, x$jscomp$0, thrownInfo);
6042
- trackPostpone(request, trackedPostpones, task, request$jscomp$1);
6020
+ trackPostpone(request, trackedPostpones, task, request$jscomp$0);
6043
6021
  finishedTask(
6044
6022
  request,
6045
6023
  task.blockedBoundary,
6046
6024
  task.row,
6047
- request$jscomp$1
6025
+ request$jscomp$0
6048
6026
  );
6049
6027
  } else if (
6050
6028
  "object" === typeof x$jscomp$0 &&
6051
6029
  null !== x$jscomp$0 &&
6052
6030
  "function" === typeof x$jscomp$0.then
6053
6031
  ) {
6054
- request$jscomp$1.status = 0;
6032
+ request$jscomp$0.status = 0;
6055
6033
  task.thenableState =
6056
6034
  thrownValue === SuspenseException
6057
6035
  ? getThenableStateAfterSuspending()
@@ -6061,14 +6039,14 @@ function performWork(request$jscomp$2) {
6061
6039
  } else {
6062
6040
  var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
6063
6041
  task.abortSet.delete(task);
6064
- request$jscomp$1.status = 4;
6042
+ request$jscomp$0.status = 4;
6065
6043
  var boundary$jscomp$0 = task.blockedBoundary,
6066
6044
  row = task.row;
6067
6045
  null !== row &&
6068
6046
  0 === --row.pendingTasks &&
6069
6047
  finishSuspenseListRow(request, row);
6070
6048
  request.allPendingTasks--;
6071
- request$jscomp$0 = logRecoverableError(
6049
+ var errorDigest$jscomp$0 = logRecoverableError(
6072
6050
  request,
6073
6051
  x$jscomp$0,
6074
6052
  errorInfo$jscomp$0
@@ -6079,7 +6057,7 @@ function performWork(request$jscomp$2) {
6079
6057
  4 !== boundary$jscomp$0.status)
6080
6058
  ) {
6081
6059
  boundary$jscomp$0.status = 4;
6082
- boundary$jscomp$0.errorDigest = request$jscomp$0;
6060
+ boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
6083
6061
  untrackBoundary(request, boundary$jscomp$0);
6084
6062
  var boundaryRow = boundary$jscomp$0.row;
6085
6063
  null !== boundaryRow &&
@@ -6099,11 +6077,11 @@ function performWork(request$jscomp$2) {
6099
6077
  }
6100
6078
  }
6101
6079
  pingedTasks.splice(0, i);
6102
- null !== request$jscomp$2.destination &&
6103
- flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
6080
+ null !== request$jscomp$1.destination &&
6081
+ flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
6104
6082
  } catch (error) {
6105
- logRecoverableError(request$jscomp$2, error, {}),
6106
- fatalError(request$jscomp$2, error);
6083
+ logRecoverableError(request$jscomp$1, error, {}),
6084
+ fatalError(request$jscomp$1, error);
6107
6085
  } finally {
6108
6086
  (currentResumableState = prevResumableState),
6109
6087
  (ReactSharedInternals.H = prevDispatcher),
@@ -6844,4 +6822,4 @@ exports.renderToString = function (children, options) {
6844
6822
  'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
6845
6823
  );
6846
6824
  };
6847
- exports.version = "19.3.0-canary-67f7d47a-20251103";
6825
+ exports.version = "19.3.0-canary-dd048c3b-20251105";