Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Meta
create-react-app
Commits
c789794c
Unverified
Commit
c789794c
authored
7 years ago
by
Joe Haddad
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix run-time error unregistering (#3474)
parent
657d145f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/react-error-overlay/src/index.js
+1
-1
packages/react-error-overlay/src/index.js
with
1 addition
and
1 deletion
+1
-1
packages/react-error-overlay/src/index.js
+
1
-
1
View file @
c789794c
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment