gaearon/react-side-effect

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

Open

#40 opened on 2017年10月9日

GitHub で見る
 (33 comments) (1 reaction) (0 assignees)JavaScript (75 forks)github user discovery
help wanted

Repository metrics

Stars
 (1,214 stars)
PR merge metrics
 (PR metrics pending)

説明

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?

コントリビューターガイド