Skip to content
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

Website unit tests throw React warnings due to memory leaks caused by <Transition /> #735

Open
dcapo opened this issue Nov 19, 2020 · 0 comments

Comments

@dcapo
Copy link

dcapo commented Nov 19, 2020

The website unit test suite output includes a warning about a memory leak in <Transition />:

Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in the componentWillUnmount method. in Transition (created by ModalAnimatedWrapper) in ModalAnimatedWrapper (created by Modal) in Modal (created by ShareProProfilePanel)

I believe this happens because the unit test finishes and unmounts the component before the transition finishes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant