gaearon/react-side-effect

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

Open

#40 ouverte le 9 oct. 2017

Voir sur GitHub
 (33 commentaires) (1 réaction) (0 assignés)JavaScript (75 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (1 214 stars)
Métriques de merge PR
 (Métriques PR en attente)

Description

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?

Guide contributeur