We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 216efc7 commit 645dc42Copy full SHA for 645dc42
packages/react-error-overlay/src/index.js
@@ -59,6 +59,13 @@ export function startReportingRuntimeErrors(options: RuntimeReportingOptions) {
59
}
60
61
function handleRuntimeError(errorRecord) {
62
+ if (
63
+ currentRuntimeErrorRecords.some(({ error }) => error === errorRecord.error)
64
+ ) {
65
+ // Deduplicate identical errors.
66
+ // This fixes https://github.com/facebookincubator/create-react-app/issues/3011.
67
+ return;
68
+ }
69
currentRuntimeErrorRecords = currentRuntimeErrorRecords.concat([errorRecord]);
70
update();
71
0 commit comments