gaearon/react-side-effect

React v16: Error during mount causes instance to never be removed from mountedInstances

Open

#40 创建于 2017年10月9日

在 GitHub 查看
 (33 评论) (1 反应) (0 负责人)JavaScript (75 fork)github user discovery
help wanted

仓库指标

Star
 (1,214 star)
PR 合并指标
 (PR 指标待抓取)

描述

I'm guessing componentWillUnmount isn't called. Would a fix be to listen to componentDidCatch, splice the array as in componentWillUnmount and then rethrow the error?

贡献者指南