Skip to content

Commit c789794

Browse files
authored
Fix run-time error unregistering (facebook#3474)
1 parent 657d145 commit c789794

File tree

1 file changed

+1
-1
lines changed
  • packages/react-error-overlay/src

1 file changed

+1
-1
lines changed

packages/react-error-overlay/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function startReportingRuntimeErrors(options: RuntimeReportingOptions) {
6464
);
6565
}
6666
currentRuntimeErrorOptions = options;
67-
listenToRuntimeErrors(errorRecord => {
67+
stopListeningToRuntimeErrors = listenToRuntimeErrors(errorRecord => {
6868
try {
6969
if (typeof options.onError === 'function') {
7070
options.onError.call(null);

0 commit comments

Comments
 (0)