Commit a07c7c44 authored by Olivier Tassinari's avatar Olivier Tassinari Committed by Arunoda Susiripala

Prevent flooding when an error occurs (#2351)

parent 3e7ca1e8
...@@ -42,8 +42,10 @@ ReactReconciler.mountComponent = function (...args) { ...@@ -42,8 +42,10 @@ ReactReconciler.mountComponent = function (...args) {
try { try {
return originalMountComponent(...args) return originalMountComponent(...args)
} catch (err) { } catch (err) {
next.renderError(err) if (!err.abort) {
err.abort = true next.renderError(err)
err.abort = true
}
throw err throw err
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment