gaearon/react-side-effect

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

Open

#40 geöffnet am 9. Okt. 2017

Auf GitHub ansehen
 (33 Kommentare) (1 Reaktion) (0 zugewiesene Personen)JavaScript (75 Forks)github user discovery
help wanted

Repository-Metriken

Stars
 (1.214 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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?

Contributor Guide