Skip to content

Commit

Permalink
Fix run-time error unregistering (facebook#3474)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer authored and placenamehere committed Nov 30, 2017
1 parent ce2513a commit ff1a94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-error-overlay/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function startReportingRuntimeErrors(options: RuntimeReportingOptions) {
);
}
currentRuntimeErrorOptions = options;
listenToRuntimeErrors(errorRecord => {
stopListeningToRuntimeErrors = listenToRuntimeErrors(errorRecord => {
try {
if (typeof options.onError === 'function') {
options.onError.call(null);
Expand Down

0 comments on commit ff1a94d

Please sign in to comment.