react-dom 19.2.0-canary-19baee81-20250725 → 19.2.0-canary-9be531cd-20250729

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.
@@ -5154,6 +5154,19 @@
5154
5154
  throw SuspenseException;
5155
5155
  }
5156
5156
  }
5157
+ function resolveLazy(lazyType) {
5158
+ try {
5159
+ return callLazyInitInDEV(lazyType);
5160
+ } catch (x) {
5161
+ if (null !== x && "object" === typeof x && "function" === typeof x.then)
5162
+ throw (
5163
+ ((suspendedThenable = x),
5164
+ (needsToResetSuspendedThenableDEV = !0),
5165
+ SuspenseException)
5166
+ );
5167
+ throw x;
5168
+ }
5169
+ }
5157
5170
  function getSuspendedThenable() {
5158
5171
  if (null === suspendedThenable)
5159
5172
  throw Error(
@@ -5359,7 +5372,7 @@
5359
5372
  ("object" === typeof elementType &&
5360
5373
  null !== elementType &&
5361
5374
  elementType.$$typeof === REACT_LAZY_TYPE &&
5362
- callLazyInitInDEV(elementType) === current.type))
5375
+ resolveLazy(elementType) === current.type))
5363
5376
  )
5364
5377
  return (
5365
5378
  (current = useFiber(current, element.props)),
@@ -5460,7 +5473,7 @@
5460
5473
  );
5461
5474
  case REACT_LAZY_TYPE:
5462
5475
  var _prevDebugInfo = pushDebugInfo(newChild._debugInfo);
5463
- newChild = callLazyInitInDEV(newChild);
5476
+ newChild = resolveLazy(newChild);
5464
5477
  returnFiber = createChild(returnFiber, newChild, lanes);
5465
5478
  currentDebugInfo = _prevDebugInfo;
5466
5479
  return returnFiber;
@@ -5536,7 +5549,7 @@
5536
5549
  case REACT_LAZY_TYPE:
5537
5550
  return (
5538
5551
  (key = pushDebugInfo(newChild._debugInfo)),
5539
- (newChild = callLazyInitInDEV(newChild)),
5552
+ (newChild = resolveLazy(newChild)),
5540
5553
  (returnFiber = updateSlot(
5541
5554
  returnFiber,
5542
5555
  oldFiber,
@@ -5630,7 +5643,7 @@
5630
5643
  );
5631
5644
  case REACT_LAZY_TYPE:
5632
5645
  var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo);
5633
- newChild = callLazyInitInDEV(newChild);
5646
+ newChild = resolveLazy(newChild);
5634
5647
  returnFiber = updateFromMap(
5635
5648
  existingChildren,
5636
5649
  returnFiber,
@@ -5708,7 +5721,7 @@
5708
5721
  });
5709
5722
  break;
5710
5723
  case REACT_LAZY_TYPE:
5711
- (child = callLazyInitInDEV(child)),
5724
+ (child = resolveLazy(child)),
5712
5725
  warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys);
5713
5726
  }
5714
5727
  return knownKeys;
@@ -5985,7 +5998,7 @@
5985
5998
  ("object" === typeof key &&
5986
5999
  null !== key &&
5987
6000
  key.$$typeof === REACT_LAZY_TYPE &&
5988
- callLazyInitInDEV(key) === currentFirstChild.type)
6001
+ resolveLazy(key) === currentFirstChild.type)
5989
6002
  ) {
5990
6003
  deleteRemainingChildren(
5991
6004
  returnFiber,
@@ -6076,7 +6089,7 @@
6076
6089
  case REACT_LAZY_TYPE:
6077
6090
  return (
6078
6091
  (prevDebugInfo = pushDebugInfo(newChild._debugInfo)),
6079
- (newChild = callLazyInitInDEV(newChild)),
6092
+ (newChild = resolveLazy(newChild)),
6080
6093
  (returnFiber = reconcileChildFibersImpl(
6081
6094
  returnFiber,
6082
6095
  currentFirstChild,
@@ -10601,7 +10614,7 @@
10601
10614
  case 16:
10602
10615
  a: if (
10603
10616
  ((returnFiber = workInProgress.pendingProps),
10604
- (current = callLazyInitInDEV(workInProgress.elementType)),
10617
+ (current = resolveLazy(workInProgress.elementType)),
10605
10618
  (workInProgress.type = current),
10606
10619
  "function" === typeof current)
10607
10620
  )
@@ -23525,25 +23538,7 @@
23525
23538
  pendingUNSAFE_ComponentWillUpdateWarnings = [];
23526
23539
  pendingLegacyContextWarning = new Map();
23527
23540
  };
23528
- var SuspenseException = Error(
23529
- "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
23530
- ),
23531
- SuspenseyCommitException = Error(
23532
- "Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
23533
- ),
23534
- SuspenseActionException = Error(
23535
- "Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."
23536
- ),
23537
- noopSuspenseyCommitThenable = {
23538
- then: function () {
23539
- console.error(
23540
- 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.'
23541
- );
23542
- }
23543
- },
23544
- suspendedThenable = null,
23545
- needsToResetSuspendedThenableDEV = !1,
23546
- callComponent = {
23541
+ var callComponent = {
23547
23542
  react_stack_bottom_frame: function (Component, props, secondArg) {
23548
23543
  var wasRendering = isRendering;
23549
23544
  isRendering = !0;
@@ -23660,6 +23655,24 @@
23660
23655
  },
23661
23656
  callLazyInitInDEV =
23662
23657
  callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
23658
+ SuspenseException = Error(
23659
+ "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
23660
+ ),
23661
+ SuspenseyCommitException = Error(
23662
+ "Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
23663
+ ),
23664
+ SuspenseActionException = Error(
23665
+ "Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."
23666
+ ),
23667
+ noopSuspenseyCommitThenable = {
23668
+ then: function () {
23669
+ console.error(
23670
+ 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.'
23671
+ );
23672
+ }
23673
+ },
23674
+ suspendedThenable = null,
23675
+ needsToResetSuspendedThenableDEV = !1,
23663
23676
  thenableState$1 = null,
23664
23677
  thenableIndexCounter$1 = 0,
23665
23678
  currentDebugInfo = null,
@@ -25506,11 +25519,11 @@
25506
25519
  };
25507
25520
  (function () {
25508
25521
  var isomorphicReactPackageVersion = React.version;
25509
- if ("19.2.0-canary-19baee81-20250725" !== isomorphicReactPackageVersion)
25522
+ if ("19.2.0-canary-9be531cd-20250729" !== isomorphicReactPackageVersion)
25510
25523
  throw Error(
25511
25524
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
25512
25525
  (isomorphicReactPackageVersion +
25513
- "\n - react-dom: 19.2.0-canary-19baee81-20250725\nLearn more: https://react.dev/warnings/version-mismatch")
25526
+ "\n - react-dom: 19.2.0-canary-9be531cd-20250729\nLearn more: https://react.dev/warnings/version-mismatch")
25514
25527
  );
25515
25528
  })();
25516
25529
  ("function" === typeof Map &&
@@ -25547,10 +25560,10 @@
25547
25560
  !(function () {
25548
25561
  var internals = {
25549
25562
  bundleType: 1,
25550
- version: "19.2.0-canary-19baee81-20250725",
25563
+ version: "19.2.0-canary-9be531cd-20250729",
25551
25564
  rendererPackageName: "react-dom",
25552
25565
  currentDispatcherRef: ReactSharedInternals,
25553
- reconcilerVersion: "19.2.0-canary-19baee81-20250725"
25566
+ reconcilerVersion: "19.2.0-canary-9be531cd-20250729"
25554
25567
  };
25555
25568
  internals.overrideHookState = overrideHookState;
25556
25569
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25688,7 +25701,7 @@
25688
25701
  listenToAllSupportedEvents(container);
25689
25702
  return new ReactDOMHydrationRoot(initialChildren);
25690
25703
  };
25691
- exports.version = "19.2.0-canary-19baee81-20250725";
25704
+ exports.version = "19.2.0-canary-9be531cd-20250729";
25692
25705
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
25693
25706
  "function" ===
25694
25707
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&