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.
@@ -3729,7 +3729,6 @@ function RequestInstance(
3729
3729
  onShellReady,
3730
3730
  onShellError,
3731
3731
  onFatalError,
3732
- onPostpone,
3733
3732
  formState
3734
3733
  ) {
3735
3734
  var abortSet = new Set();
@@ -3752,7 +3751,6 @@ function RequestInstance(
3752
3751
  this.partialBoundaries = [];
3753
3752
  this.trackedPostpones = null;
3754
3753
  this.onError = void 0 === onError ? defaultErrorHandler : onError;
3755
- this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3756
3754
  this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3757
3755
  this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3758
3756
  this.onShellError = void 0 === onShellError ? noop : onShellError;
@@ -3770,7 +3768,6 @@ function createRequest(
3770
3768
  onShellReady,
3771
3769
  onShellError,
3772
3770
  onFatalError,
3773
- onPostpone,
3774
3771
  formState
3775
3772
  ) {
3776
3773
  resumableState = new RequestInstance(
@@ -3783,7 +3780,6 @@ function createRequest(
3783
3780
  onShellReady,
3784
3781
  onShellError,
3785
3782
  onFatalError,
3786
- onPostpone,
3787
3783
  formState
3788
3784
  );
3789
3785
  renderState = createPendingSegment(
@@ -4778,8 +4774,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
4778
4774
  contentRootSegment.status = 3;
4779
4775
  var error = request.fatalError;
4780
4776
  } else (contentRootSegment.status = 4), (error = thrownValue$30);
4781
- var thrownInfo = getThrownInfo(task.componentStack);
4782
- var errorDigest = logRecoverableError(request, error, thrownInfo);
4777
+ var thrownInfo = getThrownInfo(task.componentStack),
4778
+ errorDigest = logRecoverableError(request, error, thrownInfo);
4783
4779
  newBoundary.errorDigest = errorDigest;
4784
4780
  untrackBoundary(request, newBoundary);
4785
4781
  } finally {
@@ -4959,12 +4955,12 @@ function retryNode(request, task) {
4959
4955
  throw Error(
4960
4956
  formatProdErrorMessage(490, node$jscomp$0[0], name)
4961
4957
  );
4962
- var childNodes = node$jscomp$0[2];
4963
- name = node$jscomp$0[3];
4964
- keyOrIndex = task.node;
4958
+ var childNodes = node$jscomp$0[2],
4959
+ childSlots = node$jscomp$0[3];
4960
+ name = task.node;
4965
4961
  task.replay = {
4966
4962
  nodes: childNodes,
4967
- slots: name,
4963
+ slots: childSlots,
4968
4964
  pendingTasks: 1
4969
4965
  };
4970
4966
  try {
@@ -4983,7 +4979,7 @@ function retryNode(request, task) {
4983
4979
  "function" === typeof x.then)
4984
4980
  )
4985
4981
  throw (
4986
- (task.node === keyOrIndex
4982
+ (task.node === name
4987
4983
  ? (task.replay = replay)
4988
4984
  : childIndex.splice(node, 1),
4989
4985
  x)
@@ -4998,7 +4994,7 @@ function retryNode(request, task) {
4998
4994
  key,
4999
4995
  request,
5000
4996
  childNodes,
5001
- name,
4997
+ childSlots,
5002
4998
  type,
5003
4999
  props
5004
5000
  );
@@ -5014,16 +5010,15 @@ function retryNode(request, task) {
5014
5010
  )
5015
5011
  );
5016
5012
  b: {
5017
- replay = void 0;
5018
- type = node$jscomp$0[5];
5019
- ref = node$jscomp$0[2];
5020
- name = node$jscomp$0[3];
5021
- keyOrIndex =
5013
+ replay = node$jscomp$0[5];
5014
+ type = node$jscomp$0[2];
5015
+ ref = node$jscomp$0[3];
5016
+ name =
5022
5017
  null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
5023
5018
  node$jscomp$0 =
5024
5019
  null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
5025
- var prevKeyPath = task.keyPath,
5026
- prevContext = task.formatContext,
5020
+ keyOrIndex = task.keyPath;
5021
+ var prevContext = task.formatContext,
5027
5022
  prevRow = task.row,
5028
5023
  previousReplaySet = task.replay,
5029
5024
  parentBoundary = task.blockedBoundary,
@@ -5039,7 +5034,7 @@ function retryNode(request, task) {
5039
5034
  null
5040
5035
  );
5041
5036
  props.parentFlushed = !0;
5042
- props.rootSegmentID = type;
5037
+ props.rootSegmentID = replay;
5043
5038
  task.blockedBoundary = props;
5044
5039
  task.hoistableState = props.contentState;
5045
5040
  task.keyPath = key;
@@ -5049,8 +5044,8 @@ function retryNode(request, task) {
5049
5044
  );
5050
5045
  task.row = null;
5051
5046
  task.replay = {
5052
- nodes: ref,
5053
- slots: name,
5047
+ nodes: type,
5048
+ slots: ref,
5054
5049
  pendingTasks: 1
5055
5050
  };
5056
5051
  try {
@@ -5069,30 +5064,26 @@ function retryNode(request, task) {
5069
5064
  } catch (error) {
5070
5065
  (props.status = 4),
5071
5066
  (childNodes = getThrownInfo(task.componentStack)),
5072
- (replay = logRecoverableError(
5067
+ (childSlots = logRecoverableError(
5073
5068
  request,
5074
5069
  error,
5075
5070
  childNodes
5076
5071
  )),
5077
- (props.errorDigest = replay),
5072
+ (props.errorDigest = childSlots),
5078
5073
  task.replay.pendingTasks--,
5079
5074
  request.clientRenderedBoundaries.push(props);
5080
5075
  } finally {
5081
5076
  (task.blockedBoundary = parentBoundary),
5082
5077
  (task.hoistableState = parentHoistableState),
5083
5078
  (task.replay = previousReplaySet),
5084
- (task.keyPath = prevKeyPath),
5079
+ (task.keyPath = keyOrIndex),
5085
5080
  (task.formatContext = prevContext),
5086
5081
  (task.row = prevRow);
5087
5082
  }
5088
5083
  childNodes = createReplayTask(
5089
5084
  request,
5090
5085
  null,
5091
- {
5092
- nodes: keyOrIndex,
5093
- slots: node$jscomp$0,
5094
- pendingTasks: 0
5095
- },
5086
+ { nodes: name, slots: node$jscomp$0, pendingTasks: 0 },
5096
5087
  fallback,
5097
5088
  -1,
5098
5089
  parentBoundary,
@@ -5138,10 +5129,10 @@ function retryNode(request, task) {
5138
5129
  if ((childNodes = childNodes.call(node))) {
5139
5130
  node = childNodes.next();
5140
5131
  if (!node.done) {
5141
- props = [];
5142
- do props.push(node.value), (node = childNodes.next());
5132
+ childSlots = [];
5133
+ do childSlots.push(node.value), (node = childNodes.next());
5143
5134
  while (!node.done);
5144
- renderChildrenArray(request, task, props, childIndex);
5135
+ renderChildrenArray(request, task, childSlots, childIndex);
5145
5136
  }
5146
5137
  return;
5147
5138
  }
@@ -5825,38 +5816,37 @@ function finishedTask(request, boundary, row, segment) {
5825
5816
  tryToResolveTogetherRow(request, boundary);
5826
5817
  0 === request.allPendingTasks && completeAll(request);
5827
5818
  }
5828
- function performWork(request$jscomp$2) {
5829
- if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
5819
+ function performWork(request$jscomp$1) {
5820
+ if (14 !== request$jscomp$1.status && 13 !== request$jscomp$1.status) {
5830
5821
  var prevContext = currentActiveSnapshot,
5831
5822
  prevDispatcher = ReactSharedInternals.H;
5832
5823
  ReactSharedInternals.H = HooksDispatcher;
5833
5824
  var prevAsyncDispatcher = ReactSharedInternals.A;
5834
5825
  ReactSharedInternals.A = DefaultAsyncDispatcher;
5835
5826
  var prevRequest = currentRequest;
5836
- currentRequest = request$jscomp$2;
5827
+ currentRequest = request$jscomp$1;
5837
5828
  var prevResumableState = currentResumableState;
5838
- currentResumableState = request$jscomp$2.resumableState;
5829
+ currentResumableState = request$jscomp$1.resumableState;
5839
5830
  try {
5840
- var pingedTasks = request$jscomp$2.pingedTasks,
5831
+ var pingedTasks = request$jscomp$1.pingedTasks,
5841
5832
  i;
5842
5833
  for (i = 0; i < pingedTasks.length; i++) {
5843
5834
  var task = pingedTasks[i],
5844
- request = request$jscomp$2,
5835
+ request = request$jscomp$1,
5845
5836
  segment = task.blockedSegment;
5846
5837
  if (null === segment) {
5847
- var request$jscomp$0 = request;
5848
5838
  if (0 !== task.replay.pendingTasks) {
5849
5839
  switchContext(task.context);
5850
5840
  try {
5851
5841
  "number" === typeof task.replay.slots
5852
5842
  ? resumeNode(
5853
- request$jscomp$0,
5843
+ request,
5854
5844
  task,
5855
5845
  task.replay.slots,
5856
5846
  task.node,
5857
5847
  task.childIndex
5858
5848
  )
5859
- : retryNode(request$jscomp$0, task);
5849
+ : retryNode(request, task);
5860
5850
  if (
5861
5851
  1 === task.replay.pendingTasks &&
5862
5852
  0 < task.replay.nodes.length
@@ -5864,12 +5854,7 @@ function performWork(request$jscomp$2) {
5864
5854
  throw Error(formatProdErrorMessage(488));
5865
5855
  task.replay.pendingTasks--;
5866
5856
  task.abortSet.delete(task);
5867
- finishedTask(
5868
- request$jscomp$0,
5869
- task.blockedBoundary,
5870
- task.row,
5871
- null
5872
- );
5857
+ finishedTask(request, task.blockedBoundary, task.row, null);
5873
5858
  } catch (thrownValue) {
5874
5859
  resetHooksState();
5875
5860
  var x =
@@ -5890,68 +5875,61 @@ function performWork(request$jscomp$2) {
5890
5875
  } else {
5891
5876
  task.replay.pendingTasks--;
5892
5877
  task.abortSet.delete(task);
5893
- var errorInfo = getThrownInfo(task.componentStack);
5894
- request = void 0;
5895
- var request$jscomp$1 = request$jscomp$0,
5878
+ var errorInfo = getThrownInfo(task.componentStack),
5879
+ request$jscomp$0 = request,
5896
5880
  boundary = task.blockedBoundary,
5897
5881
  error$jscomp$0 =
5898
- 12 === request$jscomp$0.status
5899
- ? request$jscomp$0.fatalError
5900
- : x,
5882
+ 12 === request.status ? request.fatalError : x,
5901
5883
  replayNodes = task.replay.nodes,
5902
- resumeSlots = task.replay.slots;
5903
- request = logRecoverableError(
5904
- request$jscomp$1,
5905
- error$jscomp$0,
5906
- errorInfo
5907
- );
5884
+ resumeSlots = task.replay.slots,
5885
+ errorDigest = logRecoverableError(
5886
+ request$jscomp$0,
5887
+ error$jscomp$0,
5888
+ errorInfo
5889
+ );
5908
5890
  abortRemainingReplayNodes(
5909
- request$jscomp$1,
5891
+ request$jscomp$0,
5910
5892
  boundary,
5911
5893
  replayNodes,
5912
5894
  resumeSlots,
5913
5895
  error$jscomp$0,
5914
- request
5896
+ errorDigest
5915
5897
  );
5916
- request$jscomp$0.pendingRootTasks--;
5917
- 0 === request$jscomp$0.pendingRootTasks &&
5918
- completeShell(request$jscomp$0);
5919
- request$jscomp$0.allPendingTasks--;
5920
- 0 === request$jscomp$0.allPendingTasks &&
5921
- completeAll(request$jscomp$0);
5898
+ request.pendingRootTasks--;
5899
+ 0 === request.pendingRootTasks && completeShell(request);
5900
+ request.allPendingTasks--;
5901
+ 0 === request.allPendingTasks && completeAll(request);
5922
5902
  }
5923
5903
  } finally {
5924
5904
  }
5925
5905
  }
5926
5906
  } else if (
5927
- ((request$jscomp$0 = void 0),
5928
- (request$jscomp$1 = segment),
5929
- 0 === request$jscomp$1.status)
5907
+ ((request$jscomp$0 = segment), 0 === request$jscomp$0.status)
5930
5908
  ) {
5931
- request$jscomp$1.status = 6;
5909
+ request$jscomp$0.status = 6;
5932
5910
  switchContext(task.context);
5933
- var childrenLength = request$jscomp$1.children.length,
5934
- chunkLength = request$jscomp$1.chunks.length;
5911
+ var childrenLength = request$jscomp$0.children.length,
5912
+ chunkLength = request$jscomp$0.chunks.length;
5935
5913
  try {
5936
5914
  retryNode(request, task),
5937
5915
  pushSegmentFinale(
5938
- request$jscomp$1.chunks,
5916
+ request$jscomp$0.chunks,
5939
5917
  request.renderState,
5940
- request$jscomp$1.lastPushedText,
5941
- request$jscomp$1.textEmbedded
5918
+ request$jscomp$0.lastPushedText,
5919
+ request$jscomp$0.textEmbedded
5942
5920
  ),
5943
5921
  task.abortSet.delete(task),
5944
- (request$jscomp$1.status = 1),
5922
+ (request$jscomp$0.status = 1),
5945
5923
  finishedTask(
5946
5924
  request,
5947
5925
  task.blockedBoundary,
5948
5926
  task.row,
5949
- request$jscomp$1
5927
+ request$jscomp$0
5950
5928
  );
5951
5929
  } catch (thrownValue) {
5952
5930
  resetHooksState();
5953
- request$jscomp$1.children.length = childrenLength;
5954
- request$jscomp$1.chunks.length = chunkLength;
5931
+ request$jscomp$0.children.length = childrenLength;
5932
+ request$jscomp$0.chunks.length = chunkLength;
5955
5933
  var x$jscomp$0 =
5956
5934
  thrownValue === SuspenseException
5957
5935
  ? getSuspendedThenable()
@@ -5963,19 +5941,19 @@ function performWork(request$jscomp$2) {
5963
5941
  thrownInfo = getThrownInfo(task.componentStack);
5964
5942
  task.abortSet.delete(task);
5965
5943
  logRecoverableError(request, x$jscomp$0, thrownInfo);
5966
- trackPostpone(request, trackedPostpones, task, request$jscomp$1);
5944
+ trackPostpone(request, trackedPostpones, task, request$jscomp$0);
5967
5945
  finishedTask(
5968
5946
  request,
5969
5947
  task.blockedBoundary,
5970
5948
  task.row,
5971
- request$jscomp$1
5949
+ request$jscomp$0
5972
5950
  );
5973
5951
  } else if (
5974
5952
  "object" === typeof x$jscomp$0 &&
5975
5953
  null !== x$jscomp$0 &&
5976
5954
  "function" === typeof x$jscomp$0.then
5977
5955
  ) {
5978
- request$jscomp$1.status = 0;
5956
+ request$jscomp$0.status = 0;
5979
5957
  task.thenableState =
5980
5958
  thrownValue === SuspenseException
5981
5959
  ? getThenableStateAfterSuspending()
@@ -5985,14 +5963,14 @@ function performWork(request$jscomp$2) {
5985
5963
  } else {
5986
5964
  var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
5987
5965
  task.abortSet.delete(task);
5988
- request$jscomp$1.status = 4;
5966
+ request$jscomp$0.status = 4;
5989
5967
  var boundary$jscomp$0 = task.blockedBoundary,
5990
5968
  row = task.row;
5991
5969
  null !== row &&
5992
5970
  0 === --row.pendingTasks &&
5993
5971
  finishSuspenseListRow(request, row);
5994
5972
  request.allPendingTasks--;
5995
- request$jscomp$0 = logRecoverableError(
5973
+ var errorDigest$jscomp$0 = logRecoverableError(
5996
5974
  request,
5997
5975
  x$jscomp$0,
5998
5976
  errorInfo$jscomp$0
@@ -6003,7 +5981,7 @@ function performWork(request$jscomp$2) {
6003
5981
  4 !== boundary$jscomp$0.status)
6004
5982
  ) {
6005
5983
  boundary$jscomp$0.status = 4;
6006
- boundary$jscomp$0.errorDigest = request$jscomp$0;
5984
+ boundary$jscomp$0.errorDigest = errorDigest$jscomp$0;
6007
5985
  untrackBoundary(request, boundary$jscomp$0);
6008
5986
  var boundaryRow = boundary$jscomp$0.row;
6009
5987
  null !== boundaryRow &&
@@ -6023,11 +6001,11 @@ function performWork(request$jscomp$2) {
6023
6001
  }
6024
6002
  }
6025
6003
  pingedTasks.splice(0, i);
6026
- null !== request$jscomp$2.destination &&
6027
- flushCompletedQueues(request$jscomp$2, request$jscomp$2.destination);
6004
+ null !== request$jscomp$1.destination &&
6005
+ flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
6028
6006
  } catch (error) {
6029
- logRecoverableError(request$jscomp$2, error, {}),
6030
- fatalError(request$jscomp$2, error);
6007
+ logRecoverableError(request$jscomp$1, error, {}),
6008
+ fatalError(request$jscomp$1, error);
6031
6009
  } finally {
6032
6010
  (currentResumableState = prevResumableState),
6033
6011
  (ReactSharedInternals.H = prevDispatcher),
@@ -6755,4 +6733,4 @@ exports.renderToString = function (children, options) {
6755
6733
  '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 "renderToReadableStream" which supports Suspense on the server'
6756
6734
  );
6757
6735
  };
6758
- exports.version = "19.3.0-canary-67f7d47a-20251103";
6736
+ exports.version = "19.3.0-canary-dd048c3b-20251105";