提交 a07c7c44 编写于 作者: O Olivier Tassinari 提交者: Arunoda Susiripala

Prevent flooding when an error occurs (#2351)

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册