You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiled/facebook-www/ReactDOM-dev.classic.js
+23-13
Original file line number
Diff line number
Diff line change
@@ -7856,14 +7856,24 @@ __DEV__ &&
7856
7856
}
7857
7857
function defaultOnUncaughtError(error, errorInfo) {
7858
7858
reportGlobalError(error);
7859
-
console.warn(
7860
-
"%s\n\n%s\n%s",
7861
-
componentName
7862
-
? "An error occurred in the <" + componentName + "> component."
7863
-
: "An error occurred in one of your React components.",
7864
-
"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.",
ReactSharedInternals.getCurrentStack = function () {
7866
+
return componentStack;
7867
+
};
7868
+
try {
7869
+
warn(
7870
+
"%s\n\n%s\n",
7871
+
error,
7872
+
"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."
Copy file name to clipboardExpand all lines: compiled/facebook-www/ReactDOM-dev.modern.js
+23-13
Original file line number
Diff line number
Diff line change
@@ -7401,14 +7401,24 @@ __DEV__ &&
7401
7401
}
7402
7402
function defaultOnUncaughtError(error, errorInfo) {
7403
7403
reportGlobalError(error);
7404
-
console.warn(
7405
-
"%s\n\n%s\n%s",
7406
-
componentName
7407
-
? "An error occurred in the <" + componentName + "> component."
7408
-
: "An error occurred in one of your React components.",
7409
-
"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.",
ReactSharedInternals.getCurrentStack = function () {
7411
+
return componentStack;
7412
+
};
7413
+
try {
7414
+
warn(
7415
+
"%s\n\n%s\n",
7416
+
error,
7417
+
"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."
0 commit comments