-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
componentWillUnmount failing to fire #373
Comments
Hi @jakearchibald - is it possible this is the same issue as #349? If so, I have a fix. |
You tell me 😄 . Rendering isn't broken in the above example, just a lack of |
Looking into it! Thanks for the simple repro. |
Update: Found the source of the issue. Will publish a fix soon! |
Thanks! No rush though, the workaround is working. Was it the same issue as #349? |
No, though I think he might be running into this one now. |
Cheers! |
componentWillUnmount
isn't called if:Pop this in the repl:
Observe the log,
componentWillUnmount
does not get called onTest
.Replacing
if (!showTests) return <AnotherTest/>;
withif (!showTests) return <div><AnotherTest/></div>;
is a workaround in the meantime.The text was updated successfully, but these errors were encountered: