react-dom 19.2.0-canary-eaee5308-20250728 → 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.
@@ -5162,6 +5162,19 @@
5162
5162
  throw SuspenseException;
5163
5163
  }
5164
5164
  }
5165
+ function resolveLazy(lazyType) {
5166
+ try {
5167
+ return callLazyInitInDEV(lazyType);
5168
+ } catch (x) {
5169
+ if (null !== x && "object" === typeof x && "function" === typeof x.then)
5170
+ throw (
5171
+ ((suspendedThenable = x),
5172
+ (needsToResetSuspendedThenableDEV = !0),
5173
+ SuspenseException)
5174
+ );
5175
+ throw x;
5176
+ }
5177
+ }
5165
5178
  function getSuspendedThenable() {
5166
5179
  if (null === suspendedThenable)
5167
5180
  throw Error(
@@ -5367,7 +5380,7 @@
5367
5380
  ("object" === typeof elementType &&
5368
5381
  null !== elementType &&
5369
5382
  elementType.$$typeof === REACT_LAZY_TYPE &&
5370
- callLazyInitInDEV(elementType) === current.type))
5383
+ resolveLazy(elementType) === current.type))
5371
5384
  )
5372
5385
  return (
5373
5386
  (current = useFiber(current, element.props)),
@@ -5468,7 +5481,7 @@
5468
5481
  );
5469
5482
  case REACT_LAZY_TYPE:
5470
5483
  var _prevDebugInfo = pushDebugInfo(newChild._debugInfo);
5471
- newChild = callLazyInitInDEV(newChild);
5484
+ newChild = resolveLazy(newChild);
5472
5485
  returnFiber = createChild(returnFiber, newChild, lanes);
5473
5486
  currentDebugInfo = _prevDebugInfo;
5474
5487
  return returnFiber;
@@ -5544,7 +5557,7 @@
5544
5557
  case REACT_LAZY_TYPE:
5545
5558
  return (
5546
5559
  (key = pushDebugInfo(newChild._debugInfo)),
5547
- (newChild = callLazyInitInDEV(newChild)),
5560
+ (newChild = resolveLazy(newChild)),
5548
5561
  (returnFiber = updateSlot(
5549
5562
  returnFiber,
5550
5563
  oldFiber,
@@ -5638,7 +5651,7 @@
5638
5651
  );
5639
5652
  case REACT_LAZY_TYPE:
5640
5653
  var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo);
5641
- newChild = callLazyInitInDEV(newChild);
5654
+ newChild = resolveLazy(newChild);
5642
5655
  returnFiber = updateFromMap(
5643
5656
  existingChildren,
5644
5657
  returnFiber,
@@ -5716,7 +5729,7 @@
5716
5729
  });
5717
5730
  break;
5718
5731
  case REACT_LAZY_TYPE:
5719
- (child = callLazyInitInDEV(child)),
5732
+ (child = resolveLazy(child)),
5720
5733
  warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys);
5721
5734
  }
5722
5735
  return knownKeys;
@@ -5993,7 +6006,7 @@
5993
6006
  ("object" === typeof key &&
5994
6007
  null !== key &&
5995
6008
  key.$$typeof === REACT_LAZY_TYPE &&
5996
- callLazyInitInDEV(key) === currentFirstChild.type)
6009
+ resolveLazy(key) === currentFirstChild.type)
5997
6010
  ) {
5998
6011
  deleteRemainingChildren(
5999
6012
  returnFiber,
@@ -6084,7 +6097,7 @@
6084
6097
  case REACT_LAZY_TYPE:
6085
6098
  return (
6086
6099
  (prevDebugInfo = pushDebugInfo(newChild._debugInfo)),
6087
- (newChild = callLazyInitInDEV(newChild)),
6100
+ (newChild = resolveLazy(newChild)),
6088
6101
  (returnFiber = reconcileChildFibersImpl(
6089
6102
  returnFiber,
6090
6103
  currentFirstChild,
@@ -10609,7 +10622,7 @@
10609
10622
  case 16:
10610
10623
  a: if (
10611
10624
  ((returnFiber = workInProgress.pendingProps),
10612
- (current = callLazyInitInDEV(workInProgress.elementType)),
10625
+ (current = resolveLazy(workInProgress.elementType)),
10613
10626
  (workInProgress.type = current),
10614
10627
  "function" === typeof current)
10615
10628
  )
@@ -23577,25 +23590,7 @@
23577
23590
  pendingUNSAFE_ComponentWillUpdateWarnings = [];
23578
23591
  pendingLegacyContextWarning = new Map();
23579
23592
  };
23580
- var SuspenseException = Error(
23581
- "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`."
23582
- ),
23583
- SuspenseyCommitException = Error(
23584
- "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."
23585
- ),
23586
- SuspenseActionException = Error(
23587
- "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."
23588
- ),
23589
- noopSuspenseyCommitThenable = {
23590
- then: function () {
23591
- console.error(
23592
- 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.'
23593
- );
23594
- }
23595
- },
23596
- suspendedThenable = null,
23597
- needsToResetSuspendedThenableDEV = !1,
23598
- callComponent = {
23593
+ var callComponent = {
23599
23594
  react_stack_bottom_frame: function (Component, props, secondArg) {
23600
23595
  var wasRendering = isRendering;
23601
23596
  isRendering = !0;
@@ -23712,6 +23707,24 @@
23712
23707
  },
23713
23708
  callLazyInitInDEV =
23714
23709
  callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
23710
+ SuspenseException = Error(
23711
+ "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`."
23712
+ ),
23713
+ SuspenseyCommitException = Error(
23714
+ "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."
23715
+ ),
23716
+ SuspenseActionException = Error(
23717
+ "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."
23718
+ ),
23719
+ noopSuspenseyCommitThenable = {
23720
+ then: function () {
23721
+ console.error(
23722
+ 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.'
23723
+ );
23724
+ }
23725
+ },
23726
+ suspendedThenable = null,
23727
+ needsToResetSuspendedThenableDEV = !1,
23715
23728
  thenableState$1 = null,
23716
23729
  thenableIndexCounter$1 = 0,
23717
23730
  currentDebugInfo = null,
@@ -25558,11 +25571,11 @@
25558
25571
  };
25559
25572
  (function () {
25560
25573
  var isomorphicReactPackageVersion = React.version;
25561
- if ("19.2.0-canary-eaee5308-20250728" !== isomorphicReactPackageVersion)
25574
+ if ("19.2.0-canary-9be531cd-20250729" !== isomorphicReactPackageVersion)
25562
25575
  throw Error(
25563
25576
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
25564
25577
  (isomorphicReactPackageVersion +
25565
- "\n - react-dom: 19.2.0-canary-eaee5308-20250728\nLearn more: https://react.dev/warnings/version-mismatch")
25578
+ "\n - react-dom: 19.2.0-canary-9be531cd-20250729\nLearn more: https://react.dev/warnings/version-mismatch")
25566
25579
  );
25567
25580
  })();
25568
25581
  ("function" === typeof Map &&
@@ -25599,10 +25612,10 @@
25599
25612
  !(function () {
25600
25613
  var internals = {
25601
25614
  bundleType: 1,
25602
- version: "19.2.0-canary-eaee5308-20250728",
25615
+ version: "19.2.0-canary-9be531cd-20250729",
25603
25616
  rendererPackageName: "react-dom",
25604
25617
  currentDispatcherRef: ReactSharedInternals,
25605
- reconcilerVersion: "19.2.0-canary-eaee5308-20250728"
25618
+ reconcilerVersion: "19.2.0-canary-9be531cd-20250729"
25606
25619
  };
25607
25620
  internals.overrideHookState = overrideHookState;
25608
25621
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26070,7 +26083,7 @@
26070
26083
  exports.useFormStatus = function () {
26071
26084
  return resolveDispatcher().useHostTransitionStatus();
26072
26085
  };
26073
- exports.version = "19.2.0-canary-eaee5308-20250728";
26086
+ exports.version = "19.2.0-canary-9be531cd-20250729";
26074
26087
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
26075
26088
  "function" ===
26076
26089
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&