react-dom 19.2.0-canary-223f81d8-20250707 → 19.2.0-canary-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.
@@ -4840,6 +4840,18 @@
4840
4840
  pushServerComponentStack(task, node._debugInfo);
4841
4841
  }
4842
4842
  }
4843
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
4844
+ componentStack
4845
+ ) {
4846
+ return null === componentStack
4847
+ ? null
4848
+ : {
4849
+ parent: componentStack.parent,
4850
+ type: "Suspense Fallback",
4851
+ owner: componentStack.owner,
4852
+ stack: componentStack.stack
4853
+ };
4854
+ }
4843
4855
  function getThrownInfo(node$jscomp$0) {
4844
4856
  var errorInfo = {};
4845
4857
  node$jscomp$0 &&
@@ -5661,27 +5673,18 @@
5661
5673
  !1
5662
5674
  );
5663
5675
  segment.preambleChildren.push(preambleSegment);
5664
- var preambleTask = createRenderTask(
5665
- request,
5666
- null,
5667
- _children,
5668
- -1,
5669
- task.blockedBoundary,
5670
- preambleSegment,
5671
- task.blockedPreamble,
5672
- task.hoistableState,
5673
- request.abortableTasks,
5674
- task.keyPath,
5675
- task.formatContext,
5676
- task.context,
5677
- task.treeContext,
5678
- task.row,
5679
- task.componentStack,
5680
- emptyContextObject,
5681
- task.debugTask
5682
- );
5683
- pushComponentStack(preambleTask);
5684
- request.pingedTasks.push(preambleTask);
5676
+ task.blockedSegment = preambleSegment;
5677
+ try {
5678
+ (preambleSegment.status = 6),
5679
+ renderNode(request, task, _children, -1),
5680
+ preambleSegment.lastPushedText &&
5681
+ preambleSegment.textEmbedded &&
5682
+ preambleSegment.chunks.push(textSeparator),
5683
+ (preambleSegment.status = COMPLETED),
5684
+ finishedSegment(request, task.blockedBoundary, preambleSegment);
5685
+ } finally {
5686
+ task.blockedSegment = segment;
5687
+ }
5685
5688
  } else renderNode(request, task, _children, -1);
5686
5689
  task.formatContext = _prevContext2;
5687
5690
  task.keyPath = _prevKeyPath3;
@@ -5901,7 +5904,8 @@
5901
5904
  );
5902
5905
  contentRootSegment.parentFlushed = !0;
5903
5906
  if (null !== request.trackedPostpones) {
5904
- var fallbackKeyPath = [
5907
+ var suspenseComponentStack = task.componentStack,
5908
+ fallbackKeyPath = [
5905
5909
  keyPath[0],
5906
5910
  "Suspense Fallback",
5907
5911
  keyPath[2]
@@ -5924,6 +5928,10 @@
5924
5928
  request.resumableState,
5925
5929
  prevContext$jscomp$0
5926
5930
  );
5931
+ task.componentStack =
5932
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
5933
+ suspenseComponentStack
5934
+ );
5927
5935
  boundarySegment.status = 6;
5928
5936
  try {
5929
5937
  renderNode(request, task, fallback, -1),
@@ -5962,7 +5970,7 @@
5962
5970
  task.context,
5963
5971
  task.treeContext,
5964
5972
  null,
5965
- task.componentStack,
5973
+ suspenseComponentStack,
5966
5974
  emptyContextObject,
5967
5975
  task.debugTask
5968
5976
  );
@@ -6058,7 +6066,9 @@
6058
6066
  task.context,
6059
6067
  task.treeContext,
6060
6068
  task.row,
6061
- task.componentStack,
6069
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6070
+ task.componentStack
6071
+ ),
6062
6072
  emptyContextObject,
6063
6073
  task.debugTask
6064
6074
  );
@@ -6384,7 +6394,9 @@
6384
6394
  task.context,
6385
6395
  task.treeContext,
6386
6396
  task.row,
6387
- task.componentStack,
6397
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
6398
+ task.componentStack
6399
+ ),
6388
6400
  emptyContextObject,
6389
6401
  task.debugTask
6390
6402
  );
@@ -8334,11 +8346,11 @@
8334
8346
  }
8335
8347
  function ensureCorrectIsomorphicReactVersion() {
8336
8348
  var isomorphicReactPackageVersion = React.version;
8337
- if ("19.2.0-canary-223f81d8-20250707" !== isomorphicReactPackageVersion)
8349
+ if ("19.2.0-canary-befc1246-20250708" !== isomorphicReactPackageVersion)
8338
8350
  throw Error(
8339
8351
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
8340
8352
  (isomorphicReactPackageVersion +
8341
- "\n - react-dom: 19.2.0-canary-223f81d8-20250707\nLearn more: https://react.dev/warnings/version-mismatch")
8353
+ "\n - react-dom: 19.2.0-canary-befc1246-20250708\nLearn more: https://react.dev/warnings/version-mismatch")
8342
8354
  );
8343
8355
  }
8344
8356
  function createDrainHandler(destination, request) {
@@ -10209,5 +10221,5 @@
10209
10221
  startWork(request);
10210
10222
  });
10211
10223
  };
10212
- exports.version = "19.2.0-canary-223f81d8-20250707";
10224
+ exports.version = "19.2.0-canary-befc1246-20250708";
10213
10225
  })();
@@ -4285,6 +4285,13 @@ function pushComponentStack(task) {
4285
4285
  task.componentStack = { parent: task.componentStack, type: node.type };
4286
4286
  }
4287
4287
  }
4288
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
4289
+ componentStack
4290
+ ) {
4291
+ return null === componentStack
4292
+ ? null
4293
+ : { parent: componentStack.parent, type: "Suspense Fallback" };
4294
+ }
4288
4295
  function getThrownInfo(node$jscomp$0) {
4289
4296
  var errorInfo = {};
4290
4297
  node$jscomp$0 &&
@@ -4662,7 +4669,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4662
4669
  (task.formatContext = defaultProps),
4663
4670
  (task.keyPath = initialState);
4664
4671
  else {
4665
- ref = pushStartInstance(
4672
+ initialState = pushStartInstance(
4666
4673
  newProps.chunks,
4667
4674
  type,
4668
4675
  props,
@@ -4675,42 +4682,37 @@ function renderElement(request, task, keyPath, type, props, ref) {
4675
4682
  );
4676
4683
  newProps.lastPushedText = !1;
4677
4684
  defaultProps = task.formatContext;
4678
- initialState = task.keyPath;
4685
+ ref = task.keyPath;
4679
4686
  task.keyPath = keyPath;
4680
- 3 ===
4681
- (task.formatContext = getChildFormatContext(defaultProps, type, props))
4682
- .insertionMode
4683
- ? ((keyPath = createPendingSegment(
4684
- request,
4685
- 0,
4686
- null,
4687
- task.formatContext,
4688
- !1,
4689
- !1
4690
- )),
4691
- newProps.preambleChildren.push(keyPath),
4692
- (keyPath = createRenderTask(
4693
- request,
4694
- null,
4695
- ref,
4696
- -1,
4697
- task.blockedBoundary,
4698
- keyPath,
4699
- task.blockedPreamble,
4700
- task.hoistableState,
4701
- request.abortableTasks,
4702
- task.keyPath,
4703
- task.formatContext,
4704
- task.context,
4705
- task.treeContext,
4706
- task.row,
4707
- task.componentStack
4708
- )),
4709
- pushComponentStack(keyPath),
4710
- request.pingedTasks.push(keyPath))
4711
- : renderNode(request, task, ref, -1);
4687
+ if (
4688
+ 3 ===
4689
+ (task.formatContext = getChildFormatContext(defaultProps, type, props))
4690
+ .insertionMode
4691
+ ) {
4692
+ keyPath = createPendingSegment(
4693
+ request,
4694
+ 0,
4695
+ null,
4696
+ task.formatContext,
4697
+ !1,
4698
+ !1
4699
+ );
4700
+ newProps.preambleChildren.push(keyPath);
4701
+ task.blockedSegment = keyPath;
4702
+ try {
4703
+ (keyPath.status = 6),
4704
+ renderNode(request, task, initialState, -1),
4705
+ keyPath.lastPushedText &&
4706
+ keyPath.textEmbedded &&
4707
+ keyPath.chunks.push(textSeparator),
4708
+ (keyPath.status = 1),
4709
+ finishedSegment(request, task.blockedBoundary, keyPath);
4710
+ } finally {
4711
+ task.blockedSegment = newProps;
4712
+ }
4713
+ } else renderNode(request, task, initialState, -1);
4712
4714
  task.formatContext = defaultProps;
4713
- task.keyPath = initialState;
4715
+ task.keyPath = ref;
4714
4716
  a: {
4715
4717
  task = newProps.chunks;
4716
4718
  request = request.resumableState;
@@ -4898,17 +4900,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
4898
4900
  );
4899
4901
  contentRootSegment.parentFlushed = !0;
4900
4902
  if (null !== request.trackedPostpones) {
4901
- newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4902
- defaultProps = [newProps[1], newProps[2], [], null];
4903
- request.trackedPostpones.workingMap.set(newProps, defaultProps);
4904
- newBoundary.trackedFallbackNode = defaultProps;
4903
+ newProps = task.componentStack;
4904
+ defaultProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4905
+ initialState = [defaultProps[1], defaultProps[2], [], null];
4906
+ request.trackedPostpones.workingMap.set(defaultProps, initialState);
4907
+ newBoundary.trackedFallbackNode = initialState;
4905
4908
  task.blockedSegment = boundarySegment;
4906
4909
  task.blockedPreamble = newBoundary.fallbackPreamble;
4907
- task.keyPath = newProps;
4910
+ task.keyPath = defaultProps;
4908
4911
  task.formatContext = getSuspenseFallbackFormatContext(
4909
4912
  request.resumableState,
4910
4913
  ref
4911
4914
  );
4915
+ task.componentStack =
4916
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(newProps);
4912
4917
  boundarySegment.status = 6;
4913
4918
  try {
4914
4919
  renderNode(request, task, fallback, -1),
@@ -4946,7 +4951,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4946
4951
  task.context,
4947
4952
  task.treeContext,
4948
4953
  null,
4949
- task.componentStack
4954
+ newProps
4950
4955
  );
4951
4956
  pushComponentStack(task);
4952
4957
  request.pingedTasks.push(task);
@@ -5028,7 +5033,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
5028
5033
  task.context,
5029
5034
  task.treeContext,
5030
5035
  task.row,
5031
- task.componentStack
5036
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
5037
+ task.componentStack
5038
+ )
5032
5039
  );
5033
5040
  pushComponentStack(task);
5034
5041
  request.pingedTasks.push(task);
@@ -5341,7 +5348,9 @@ function retryNode(request, task) {
5341
5348
  task.context,
5342
5349
  task.treeContext,
5343
5350
  task.row,
5344
- task.componentStack
5351
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
5352
+ task.componentStack
5353
+ )
5345
5354
  );
5346
5355
  pushComponentStack(childNodes);
5347
5356
  request.pingedTasks.push(childNodes);
@@ -6832,11 +6841,11 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) {
6832
6841
  }
6833
6842
  function ensureCorrectIsomorphicReactVersion() {
6834
6843
  var isomorphicReactPackageVersion = React.version;
6835
- if ("19.2.0-canary-223f81d8-20250707" !== isomorphicReactPackageVersion)
6844
+ if ("19.2.0-canary-befc1246-20250708" !== isomorphicReactPackageVersion)
6836
6845
  throw Error(
6837
6846
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
6838
6847
  (isomorphicReactPackageVersion +
6839
- "\n - react-dom: 19.2.0-canary-223f81d8-20250707\nLearn more: https://react.dev/warnings/version-mismatch")
6848
+ "\n - react-dom: 19.2.0-canary-befc1246-20250708\nLearn more: https://react.dev/warnings/version-mismatch")
6840
6849
  );
6841
6850
  }
6842
6851
  ensureCorrectIsomorphicReactVersion();
@@ -7174,4 +7183,4 @@ exports.renderToReadableStream = function (children, options) {
7174
7183
  startWork(request);
7175
7184
  });
7176
7185
  };
7177
- exports.version = "19.2.0-canary-223f81d8-20250707";
7186
+ exports.version = "19.2.0-canary-befc1246-20250708";
@@ -416,7 +416,7 @@
416
416
  exports.useFormStatus = function () {
417
417
  return resolveDispatcher().useHostTransitionStatus();
418
418
  };
419
- exports.version = "19.2.0-canary-223f81d8-20250707";
419
+ exports.version = "19.2.0-canary-befc1246-20250708";
420
420
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
421
421
  "function" ===
422
422
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
207
207
  exports.useFormStatus = function () {
208
208
  return ReactSharedInternals.H.useHostTransitionStatus();
209
209
  };
210
- exports.version = "19.2.0-canary-223f81d8-20250707";
210
+ exports.version = "19.2.0-canary-befc1246-20250708";
@@ -336,5 +336,5 @@
336
336
  }))
337
337
  : Internals.d.m(href));
338
338
  };
339
- exports.version = "19.2.0-canary-223f81d8-20250707";
339
+ exports.version = "19.2.0-canary-befc1246-20250708";
340
340
  })();
@@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) {
149
149
  });
150
150
  } else Internals.d.m(href);
151
151
  };
152
- exports.version = "19.2.0-canary-223f81d8-20250707";
152
+ exports.version = "19.2.0-canary-befc1246-20250708";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dom",
3
- "version": "19.2.0-canary-223f81d8-20250707",
3
+ "version": "19.2.0-canary-befc1246-20250708",
4
4
  "description": "React package for working with the DOM.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "homepage": "https://react.dev/",
19
19
  "dependencies": {
20
- "scheduler": "0.27.0-canary-223f81d8-20250707"
20
+ "scheduler": "0.27.0-canary-befc1246-20250708"
21
21
  },
22
22
  "peerDependencies": {
23
- "react": "19.2.0-canary-223f81d8-20250707"
23
+ "react": "19.2.0-canary-befc1246-20250708"
24
24
  },
25
25
  "files": [
26
26
  "LICENSE",