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?

貢獻者指南