This repository has been archived by the owner on Dec 16, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 148
Bug: Portals aren't unmounting #501
Comments
Including this file:
and using the exported |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
Portals (#486) are never unmounted. https://codesandbox.io/s/wk6y1j8777
Expected Behavior
They should clear the target once they are unmounted. https://codesandbox.io/s/9znym0r8yp
Possible solution
Instead of a Functional Component, a regular class component calling
unmountComponentAtNode
oncomponentWillUnmount
could solve it.The text was updated successfully, but these errors were encountered: