gaearon/react-side-effect

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

Open

#40 aperta il 9 ott 2017

Vedi su GitHub
 (33 commenti) (1 reazione) (0 assegnatari)JavaScript (75 fork)github user discovery
help wanted

Metriche repository

Star
 (1214 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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?

Guida contributor