We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657d145 commit c789794Copy full SHA for c789794
packages/react-error-overlay/src/index.js
@@ -64,7 +64,7 @@ export function startReportingRuntimeErrors(options: RuntimeReportingOptions) {
64
);
65
}
66
currentRuntimeErrorOptions = options;
67
- listenToRuntimeErrors(errorRecord => {
+ stopListeningToRuntimeErrors = listenToRuntimeErrors(errorRecord => {
68
try {
69
if (typeof options.onError === 'function') {
70
options.onError.call(null);
0 commit comments