Prevent flooding when an error occurs (#2351)
This commit is contained in:
parent
3e7ca1e89e
commit
a07c7c448b
1 changed files with 4 additions and 2 deletions
|
@ -42,8 +42,10 @@ ReactReconciler.mountComponent = function (...args) {
|
|||
try {
|
||||
return originalMountComponent(...args)
|
||||
} catch (err) {
|
||||
if (!err.abort) {
|
||||
next.renderError(err)
|
||||
err.abort = true
|
||||
}
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue