|
7 | 7 | * @noflow
|
8 | 8 | * @nolint
|
9 | 9 | * @preventMunge
|
10 |
| - * @generated SignedSource<<5cd64a5e0eb5f90f0f9f0ede78d1d1f2>> |
| 10 | + * @generated SignedSource<<d41bff48d72785606cba5d8cea25fad9>> |
11 | 11 | */
|
12 | 12 |
|
13 | 13 | /*
|
@@ -6044,6 +6044,19 @@ __DEV__ &&
|
6044 | 6044 | throw SuspenseException;
|
6045 | 6045 | }
|
6046 | 6046 | }
|
| 6047 | + function resolveLazy(lazyType) { |
| 6048 | + try { |
| 6049 | + return callLazyInitInDEV(lazyType); |
| 6050 | + } catch (x) { |
| 6051 | + if (null !== x && "object" === typeof x && "function" === typeof x.then) |
| 6052 | + throw ( |
| 6053 | + ((suspendedThenable = x), |
| 6054 | + (needsToResetSuspendedThenableDEV = !0), |
| 6055 | + SuspenseException) |
| 6056 | + ); |
| 6057 | + throw x; |
| 6058 | + } |
| 6059 | + } |
6047 | 6060 | function getSuspendedThenable() {
|
6048 | 6061 | if (null === suspendedThenable)
|
6049 | 6062 | throw Error(
|
@@ -6259,7 +6272,7 @@ __DEV__ &&
|
6259 | 6272 | ("object" === typeof elementType &&
|
6260 | 6273 | null !== elementType &&
|
6261 | 6274 | elementType.$$typeof === REACT_LAZY_TYPE &&
|
6262 |
| - callLazyInitInDEV(elementType) === current.type)) |
| 6275 | + resolveLazy(elementType) === current.type)) |
6263 | 6276 | )
|
6264 | 6277 | return (
|
6265 | 6278 | (current = useFiber(current, element.props)),
|
@@ -6360,7 +6373,7 @@ __DEV__ &&
|
6360 | 6373 | );
|
6361 | 6374 | case REACT_LAZY_TYPE:
|
6362 | 6375 | var _prevDebugInfo = pushDebugInfo(newChild._debugInfo);
|
6363 |
| - newChild = callLazyInitInDEV(newChild); |
| 6376 | + newChild = resolveLazy(newChild); |
6364 | 6377 | returnFiber = createChild(returnFiber, newChild, lanes);
|
6365 | 6378 | currentDebugInfo = _prevDebugInfo;
|
6366 | 6379 | return returnFiber;
|
@@ -6436,7 +6449,7 @@ __DEV__ &&
|
6436 | 6449 | case REACT_LAZY_TYPE:
|
6437 | 6450 | return (
|
6438 | 6451 | (key = pushDebugInfo(newChild._debugInfo)),
|
6439 |
| - (newChild = callLazyInitInDEV(newChild)), |
| 6452 | + (newChild = resolveLazy(newChild)), |
6440 | 6453 | (returnFiber = updateSlot(
|
6441 | 6454 | returnFiber,
|
6442 | 6455 | oldFiber,
|
@@ -6530,7 +6543,7 @@ __DEV__ &&
|
6530 | 6543 | );
|
6531 | 6544 | case REACT_LAZY_TYPE:
|
6532 | 6545 | var _prevDebugInfo7 = pushDebugInfo(newChild._debugInfo);
|
6533 |
| - newChild = callLazyInitInDEV(newChild); |
| 6546 | + newChild = resolveLazy(newChild); |
6534 | 6547 | returnFiber = updateFromMap(
|
6535 | 6548 | existingChildren,
|
6536 | 6549 | returnFiber,
|
@@ -6608,7 +6621,7 @@ __DEV__ &&
|
6608 | 6621 | });
|
6609 | 6622 | break;
|
6610 | 6623 | case REACT_LAZY_TYPE:
|
6611 |
| - (child = callLazyInitInDEV(child)), |
| 6624 | + (child = resolveLazy(child)), |
6612 | 6625 | warnOnInvalidKey(returnFiber, workInProgress, child, knownKeys);
|
6613 | 6626 | }
|
6614 | 6627 | return knownKeys;
|
@@ -6887,7 +6900,7 @@ __DEV__ &&
|
6887 | 6900 | ("object" === typeof key &&
|
6888 | 6901 | null !== key &&
|
6889 | 6902 | key.$$typeof === REACT_LAZY_TYPE &&
|
6890 |
| - callLazyInitInDEV(key) === currentFirstChild.type) |
| 6903 | + resolveLazy(key) === currentFirstChild.type) |
6891 | 6904 | ) {
|
6892 | 6905 | deleteRemainingChildren(
|
6893 | 6906 | returnFiber,
|
@@ -6979,7 +6992,7 @@ __DEV__ &&
|
6979 | 6992 | case REACT_LAZY_TYPE:
|
6980 | 6993 | return (
|
6981 | 6994 | (prevDebugInfo = pushDebugInfo(newChild._debugInfo)),
|
6982 |
| - (newChild = callLazyInitInDEV(newChild)), |
| 6995 | + (newChild = resolveLazy(newChild)), |
6983 | 6996 | (returnFiber = reconcileChildFibersImpl(
|
6984 | 6997 | returnFiber,
|
6985 | 6998 | currentFirstChild,
|
@@ -11762,8 +11775,8 @@ __DEV__ &&
|
11762 | 11775 | a: {
|
11763 | 11776 | var elementType = workInProgress.elementType;
|
11764 | 11777 | resetSuspendedCurrentOnMountInLegacyMode(current, workInProgress);
|
11765 |
| - var props = workInProgress.pendingProps; |
11766 |
| - var Component = callLazyInitInDEV(elementType); |
| 11778 | + var props = workInProgress.pendingProps, |
| 11779 | + Component = resolveLazy(elementType); |
11767 | 11780 | workInProgress.type = Component;
|
11768 | 11781 | if ("function" === typeof Component)
|
11769 | 11782 | if (shouldConstruct(Component)) {
|
@@ -26783,25 +26796,7 @@ __DEV__ &&
|
26783 | 26796 | pendingUNSAFE_ComponentWillUpdateWarnings = [];
|
26784 | 26797 | pendingLegacyContextWarning = new Map();
|
26785 | 26798 | };
|
26786 |
| - var SuspenseException = Error( |
26787 |
| - "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`." |
26788 |
| - ), |
26789 |
| - SuspenseyCommitException = Error( |
26790 |
| - "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." |
26791 |
| - ), |
26792 |
| - SuspenseActionException = Error( |
26793 |
| - "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." |
26794 |
| - ), |
26795 |
| - noopSuspenseyCommitThenable = { |
26796 |
| - then: function () { |
26797 |
| - console.error( |
26798 |
| - 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.' |
26799 |
| - ); |
26800 |
| - } |
26801 |
| - }, |
26802 |
| - suspendedThenable = null, |
26803 |
| - needsToResetSuspendedThenableDEV = !1, |
26804 |
| - callComponent = { |
| 26799 | + var callComponent = { |
26805 | 26800 | react_stack_bottom_frame: function (Component, props, secondArg) {
|
26806 | 26801 | var wasRendering = isRendering;
|
26807 | 26802 | isRendering = !0;
|
@@ -26918,6 +26913,24 @@ __DEV__ &&
|
26918 | 26913 | },
|
26919 | 26914 | callLazyInitInDEV =
|
26920 | 26915 | callLazyInit.react_stack_bottom_frame.bind(callLazyInit),
|
| 26916 | + SuspenseException = Error( |
| 26917 | + "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`." |
| 26918 | + ), |
| 26919 | + SuspenseyCommitException = Error( |
| 26920 | + "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." |
| 26921 | + ), |
| 26922 | + SuspenseActionException = Error( |
| 26923 | + "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." |
| 26924 | + ), |
| 26925 | + noopSuspenseyCommitThenable = { |
| 26926 | + then: function () { |
| 26927 | + console.error( |
| 26928 | + 'Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.' |
| 26929 | + ); |
| 26930 | + } |
| 26931 | + }, |
| 26932 | + suspendedThenable = null, |
| 26933 | + needsToResetSuspendedThenableDEV = !1, |
26921 | 26934 | thenableState$1 = null,
|
26922 | 26935 | thenableIndexCounter$1 = 0,
|
26923 | 26936 | currentDebugInfo = null,
|
@@ -29012,11 +29025,11 @@ __DEV__ &&
|
29012 | 29025 | };
|
29013 | 29026 | (function () {
|
29014 | 29027 | var isomorphicReactPackageVersion = React.version;
|
29015 |
| - if ("19.2.0-native-fb-33a2bf78-20250729" !== isomorphicReactPackageVersion) |
| 29028 | + if ("19.2.0-native-fb-04a7a619-20250729" !== isomorphicReactPackageVersion) |
29016 | 29029 | throw Error(
|
29017 | 29030 | 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
29018 | 29031 | (isomorphicReactPackageVersion +
|
29019 |
| - "\n - react-dom: 19.2.0-native-fb-33a2bf78-20250729\nLearn more: https://react.dev/warnings/version-mismatch") |
| 29032 | + "\n - react-dom: 19.2.0-native-fb-04a7a619-20250729\nLearn more: https://react.dev/warnings/version-mismatch") |
29020 | 29033 | );
|
29021 | 29034 | })();
|
29022 | 29035 | ("function" === typeof Map &&
|
@@ -29053,10 +29066,10 @@ __DEV__ &&
|
29053 | 29066 | !(function () {
|
29054 | 29067 | var internals = {
|
29055 | 29068 | bundleType: 1,
|
29056 |
| - version: "19.2.0-native-fb-33a2bf78-20250729", |
| 29069 | + version: "19.2.0-native-fb-04a7a619-20250729", |
29057 | 29070 | rendererPackageName: "react-dom",
|
29058 | 29071 | currentDispatcherRef: ReactSharedInternals,
|
29059 |
| - reconcilerVersion: "19.2.0-native-fb-33a2bf78-20250729" |
| 29072 | + reconcilerVersion: "19.2.0-native-fb-04a7a619-20250729" |
29060 | 29073 | };
|
29061 | 29074 | internals.overrideHookState = overrideHookState;
|
29062 | 29075 | internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -29194,5 +29207,5 @@ __DEV__ &&
|
29194 | 29207 | listenToAllSupportedEvents(container);
|
29195 | 29208 | return new ReactDOMHydrationRoot(initialChildren);
|
29196 | 29209 | };
|
29197 |
| - exports.version = "19.2.0-native-fb-33a2bf78-20250729"; |
| 29210 | + exports.version = "19.2.0-native-fb-04a7a619-20250729"; |
29198 | 29211 | })();
|
0 commit comments