From 5fb5ce8173289f01f0f4105e5459e25624fb3d4c Mon Sep 17 00:00:00 2001 From: sebmarkbage Date: Wed, 10 Jul 2024 21:04:35 +0000 Subject: [PATCH] Override the getCurrentStack temporarily while printing uncaught errors (#30309) This is just a follow up to #30300. I forgot the uncaught branch. DiffTrain build for [29552c7907230222acd3f2c586784d24f9da6200](https://github.com/facebook/react/commit/29552c7907230222acd3f2c586784d24f9da6200) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 4 +-- compiled/facebook-www/ReactART-dev.modern.js | 4 +-- .../facebook-www/ReactART-prod.classic.js | 4 +-- compiled/facebook-www/ReactART-prod.modern.js | 4 +-- compiled/facebook-www/ReactDOM-dev.classic.js | 36 ++++++++++++------- compiled/facebook-www/ReactDOM-dev.modern.js | 36 ++++++++++++------- .../facebook-www/ReactDOM-prod.classic.js | 10 +++--- compiled/facebook-www/ReactDOM-prod.modern.js | 10 +++--- .../ReactDOM-profiling.classic.js | 10 +++--- .../facebook-www/ReactDOM-profiling.modern.js | 10 +++--- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 36 ++++++++++++------- .../ReactDOMTesting-dev.modern.js | 36 ++++++++++++------- .../ReactDOMTesting-prod.classic.js | 10 +++--- .../ReactDOMTesting-prod.modern.js | 10 +++--- .../ReactReconciler-dev.classic.js | 28 ++++++++++----- .../ReactReconciler-dev.modern.js | 28 ++++++++++----- .../ReactReconciler-prod.classic.js | 2 +- .../ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 30 ++++++++++------ .../ReactTestRenderer-dev.modern.js | 30 ++++++++++------ compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 34 files changed, 224 insertions(+), 144 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 39555d6a1a895..29ab28909c82d 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -fe9828954adcc51aa2bd21fe53d969a44dd3c9d2 +29552c7907230222acd3f2c586784d24f9da6200 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 39555d6a1a895..29ab28909c82d 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -fe9828954adcc51aa2bd21fe53d969a44dd3c9d2 +29552c7907230222acd3f2c586784d24f9da6200 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index c2c1cab0938c6..d8d410a59382b 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1998,7 +1998,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-fe9828954a-20240710"; + exports.version = "19.0.0-www-classic-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index ad3efdf874f92..40d3da6cdd124 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1978,7 +1978,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-fe9828954a-20240710"; + exports.version = "19.0.0-www-modern-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 518b46b049b24..7599374d58eef 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -669,4 +669,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-fe9828954a-20240710"; +exports.version = "19.0.0-www-classic-29552c7907-20240710"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index b1f29d2e4693b..b44c5f2aad4ee 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -669,4 +669,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-fe9828954a-20240710"; +exports.version = "19.0.0-www-modern-29552c7907-20240710"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 35411298f9997..c3943d9e0c32c 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -673,7 +673,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-fe9828954a-20240710"; +exports.version = "19.0.0-www-classic-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index cf6a5ac15f2a7..f376f877cee11 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -673,7 +673,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-fe9828954a-20240710"; +exports.version = "19.0.0-www-modern-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index b68ac5e6ff599..ea201da9cd71e 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -17017,14 +17017,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }); })({ findFiberByHostInstance: function () { return null; }, bundleType: 1, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-art" }); var ClippingRectangle = TYPES.CLIPPING_RECTANGLE, diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index e44d381624b51..66aeb82372961 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -16432,14 +16432,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }); })({ findFiberByHostInstance: function () { return null; }, bundleType: 1, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-art" }); var ClippingRectangle = TYPES.CLIPPING_RECTANGLE, diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index e5f76d125245f..225bff6c23376 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -10749,7 +10749,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-art" }; var internals$jscomp$inline_1386 = { @@ -10780,7 +10780,7 @@ var internals$jscomp$inline_1386 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1387 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 56b826cd73b09..d49fdca121e11 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10202,7 +10202,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-art" }; var internals$jscomp$inline_1372 = { @@ -10233,7 +10233,7 @@ var internals$jscomp$inline_1372 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1373 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index e2f7cd7af996a..cafe072c67ba4 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -7856,14 +7856,24 @@ __DEV__ && } function defaultOnUncaughtError(error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } } function defaultOnCaughtError(error$1, errorInfo) { var componentNameMessage = componentName @@ -27556,11 +27566,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-fe9828954a-20240710" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-29552c7907-20240710" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-fe9828954a-20240710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-29552c7907-20240710\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27626,12 +27636,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-dom" }) && canUseDOM && @@ -28274,7 +28284,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-fe9828954a-20240710"; + exports.version = "19.0.0-www-classic-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 2a84d22cb405a..009aa12b1091c 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -7401,14 +7401,24 @@ __DEV__ && } function defaultOnUncaughtError(error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } } function defaultOnCaughtError(error$1, errorInfo) { var componentNameMessage = componentName @@ -26688,11 +26698,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-fe9828954a-20240710" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-29552c7907-20240710" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-fe9828954a-20240710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-29552c7907-20240710\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26757,12 +26767,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-dom" }) && canUseDOM && @@ -27358,7 +27368,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-fe9828954a-20240710"; + exports.version = "19.0.0-www-modern-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 2ece30dccaf14..c6a655dc910a6 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -17194,14 +17194,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1769 = React.version; if ( - "19.0.0-www-classic-fe9828954a-20240710" !== + "19.0.0-www-classic-29552c7907-20240710" !== isomorphicReactPackageVersion$jscomp$inline_1769 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1769, - "19.0.0-www-classic-fe9828954a-20240710" + "19.0.0-www-classic-29552c7907-20240710" ) ); function flushSyncFromReconciler(fn) { @@ -17247,7 +17247,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1776 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2220 = { @@ -17277,7 +17277,7 @@ var internals$jscomp$inline_2220 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17741,4 +17741,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-fe9828954a-20240710"; +exports.version = "19.0.0-www-classic-29552c7907-20240710"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 57bd675e27434..3a201a26bcf7e 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -16509,14 +16509,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1740 = React.version; if ( - "19.0.0-www-modern-fe9828954a-20240710" !== + "19.0.0-www-modern-29552c7907-20240710" !== isomorphicReactPackageVersion$jscomp$inline_1740 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1740, - "19.0.0-www-modern-fe9828954a-20240710" + "19.0.0-www-modern-29552c7907-20240710" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16535,7 +16535,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1742 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2211 = { @@ -16565,7 +16565,7 @@ var internals$jscomp$inline_2211 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2212 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16936,4 +16936,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-fe9828954a-20240710"; +exports.version = "19.0.0-www-modern-29552c7907-20240710"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index b03021338cac8..e09aeb3525d49 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -17965,14 +17965,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1856 = React.version; if ( - "19.0.0-www-classic-fe9828954a-20240710" !== + "19.0.0-www-classic-29552c7907-20240710" !== isomorphicReactPackageVersion$jscomp$inline_1856 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1856, - "19.0.0-www-classic-fe9828954a-20240710" + "19.0.0-www-classic-29552c7907-20240710" ) ); function flushSyncFromReconciler(fn) { @@ -18018,7 +18018,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1863 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-dom" }; (function (internals) { @@ -18062,7 +18062,7 @@ var devToolsConfig$jscomp$inline_1863 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }); function ReactDOMRoot(internalRoot) { this._internalRoot = internalRoot; @@ -18513,7 +18513,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-fe9828954a-20240710"; +exports.version = "19.0.0-www-classic-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index a14a7fb8ae170..b89d222611055 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17263,14 +17263,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1827 = React.version; if ( - "19.0.0-www-modern-fe9828954a-20240710" !== + "19.0.0-www-modern-29552c7907-20240710" !== isomorphicReactPackageVersion$jscomp$inline_1827 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1827, - "19.0.0-www-modern-fe9828954a-20240710" + "19.0.0-www-modern-29552c7907-20240710" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17289,7 +17289,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1829 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-dom" }; (function (internals) { @@ -17333,7 +17333,7 @@ var devToolsConfig$jscomp$inline_1829 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }); function ReactDOMRoot(internalRoot) { this._internalRoot = internalRoot; @@ -17691,7 +17691,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-fe9828954a-20240710"; +exports.version = "19.0.0-www-modern-29552c7907-20240710"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 729b1f1297c1f..142f5372d921e 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -8842,5 +8842,5 @@ __DEV__ && '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' ); }; - exports.version = "19.0.0-www-classic-fe9828954a-20240710"; + exports.version = "19.0.0-www-classic-29552c7907-20240710"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 73aefb3da3afa..f72c181e83678 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8671,5 +8671,5 @@ __DEV__ && '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' ); }; - exports.version = "19.0.0-www-modern-fe9828954a-20240710"; + exports.version = "19.0.0-www-modern-29552c7907-20240710"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index de55299ed50c7..430a67651e5c8 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5799,4 +5799,4 @@ exports.renderToString = function (children, options) { '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' ); }; -exports.version = "19.0.0-www-classic-fe9828954a-20240710"; +exports.version = "19.0.0-www-classic-29552c7907-20240710"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 8e764e3d85836..f13bf4e5044b8 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5722,4 +5722,4 @@ exports.renderToString = function (children, options) { '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' ); }; -exports.version = "19.0.0-www-modern-fe9828954a-20240710"; +exports.version = "19.0.0-www-modern-29552c7907-20240710"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 09b3d957d8b20..f3116af294ef1 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -7897,14 +7897,24 @@ __DEV__ && } function defaultOnUncaughtError(error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } } function defaultOnCaughtError(error$1, errorInfo) { var componentNameMessage = componentName @@ -27890,11 +27900,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-fe9828954a-20240710" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-29552c7907-20240710" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-fe9828954a-20240710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-29552c7907-20240710\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27960,12 +27970,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-dom" }) && canUseDOM && @@ -28774,5 +28784,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-fe9828954a-20240710"; + exports.version = "19.0.0-www-classic-29552c7907-20240710"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index d54f293339563..e0e3d8c0f9d2d 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -7442,14 +7442,24 @@ __DEV__ && } function defaultOnUncaughtError(error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } } function defaultOnCaughtError(error$1, errorInfo) { var componentNameMessage = componentName @@ -27022,11 +27032,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-fe9828954a-20240710" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-29552c7907-20240710" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-fe9828954a-20240710\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-29552c7907-20240710\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27091,12 +27101,12 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }); })({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-dom" }) && canUseDOM && @@ -27858,5 +27868,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-fe9828954a-20240710"; + exports.version = "19.0.0-www-modern-29552c7907-20240710"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index b02a0b597f818..a4415d494732b 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -17523,14 +17523,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1799 = React.version; if ( - "19.0.0-www-classic-fe9828954a-20240710" !== + "19.0.0-www-classic-29552c7907-20240710" !== isomorphicReactPackageVersion$jscomp$inline_1799 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1799, - "19.0.0-www-classic-fe9828954a-20240710" + "19.0.0-www-classic-29552c7907-20240710" ) ); function flushSyncFromReconciler(fn) { @@ -17576,7 +17576,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1806 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2255 = { @@ -17606,7 +17606,7 @@ var internals$jscomp$inline_2255 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2256 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18221,4 +18221,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-fe9828954a-20240710"; +exports.version = "19.0.0-www-classic-29552c7907-20240710"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index a1c914b45b00d..122f6fb587248 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -16897,14 +16897,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1770 = React.version; if ( - "19.0.0-www-modern-fe9828954a-20240710" !== + "19.0.0-www-modern-29552c7907-20240710" !== isomorphicReactPackageVersion$jscomp$inline_1770 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1770, - "19.0.0-www-modern-fe9828954a-20240710" + "19.0.0-www-modern-29552c7907-20240710" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16923,7 +16923,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1772 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2246 = { @@ -16953,7 +16953,7 @@ var internals$jscomp$inline_2246 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2247 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17475,4 +17475,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-fe9828954a-20240710"; +exports.version = "19.0.0-www-modern-29552c7907-20240710"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index ff62eb3785684..ecaef2ab33dfa 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -18825,14 +18825,24 @@ __DEV__ && }; exports.defaultOnUncaughtError = function (error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } }; exports.deferredUpdates = function (fn) { var prevTransition = ReactSharedInternals.T, @@ -19101,7 +19111,7 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }); }; exports.isAlreadyRendering = function () { diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 607dd43fa178d..4e0a9cc562918 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -18193,14 +18193,24 @@ __DEV__ && }; exports.defaultOnUncaughtError = function (error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } }; exports.deferredUpdates = function (fn) { var prevTransition = ReactSharedInternals.T, @@ -18465,7 +18475,7 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }); }; exports.isAlreadyRendering = function () { diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index f8be42941b5da..8e6a55f2e774b 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -12736,7 +12736,7 @@ module.exports = function ($$$config) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 874ea53236094..cdc8931d31a71 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -12228,7 +12228,7 @@ module.exports = function ($$$config) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index d000e201e6285..2fd78ce0353a2 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -5138,14 +5138,24 @@ __DEV__ && } function defaultOnUncaughtError(error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } } function defaultOnCaughtError(error$1, errorInfo) { var componentNameMessage = componentName @@ -14804,14 +14814,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-classic-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-classic-29552c7907-20240710" }); })({ findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 1, - version: "19.0.0-www-classic-fe9828954a-20240710", + version: "19.0.0-www-classic-29552c7907-20240710", rendererPackageName: "react-test-renderer" }); exports._Scheduler = Scheduler; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 00b3c60322452..dd97efb9def47 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -5138,14 +5138,24 @@ __DEV__ && } function defaultOnUncaughtError(error, errorInfo) { reportGlobalError(error); - console.warn( - "%s\n\n%s\n%s", - componentName - ? "An error occurred in the <" + componentName + "> component." - : "An error occurred in one of your React components.", - "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries.", - null != errorInfo.componentStack ? errorInfo.componentStack : "" - ); + error = componentName + ? "An error occurred in the <" + componentName + "> component." + : "An error occurred in one of your React components."; + var prevGetCurrentStack = ReactSharedInternals.getCurrentStack, + componentStack = + null != errorInfo.componentStack ? errorInfo.componentStack : ""; + ReactSharedInternals.getCurrentStack = function () { + return componentStack; + }; + try { + warn( + "%s\n\n%s\n", + error, + "Consider adding an error boundary to your tree to customize error handling behavior.\nVisit https://react.dev/link/error-boundaries to learn more about error boundaries." + ); + } finally { + ReactSharedInternals.getCurrentStack = prevGetCurrentStack; + } } function defaultOnCaughtError(error$1, errorInfo) { var componentNameMessage = componentName @@ -14804,14 +14814,14 @@ __DEV__ && scheduleRoot: scheduleRoot, setRefreshHandler: setRefreshHandler, getCurrentFiber: getCurrentFiberForDevTools, - reconcilerVersion: "19.0.0-www-modern-fe9828954a-20240710" + reconcilerVersion: "19.0.0-www-modern-29552c7907-20240710" }); })({ findFiberByHostInstance: function () { throw Error("TestRenderer does not support findFiberByHostInstance()"); }, bundleType: 1, - version: "19.0.0-www-modern-fe9828954a-20240710", + version: "19.0.0-www-modern-29552c7907-20240710", rendererPackageName: "react-test-renderer" }); exports._Scheduler = Scheduler; diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 120491124af1f..55256dce90cab 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-fe9828954a-20240710 \ No newline at end of file +19.0.0-www-classic-29552c7907-20240710 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index a63e281f79193..bc11a302cb547 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-fe9828954a-20240710 \ No newline at end of file +19.0.0-www-modern-29552c7907-20240710 \ No newline at end of file