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) {
try {
return originalMountComponent(...args)
} catch (err) {
next.renderError(err)
err.abort = true
if (!err.abort) {
next.renderError(err)
err.abort = true
}
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