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

Warning: Can't perform a React state update on an unmounted component #30

Open
mintaras opened this issue Jul 24, 2019 · 2 comments
Open

Comments

@mintaras
Copy link

Please fix this issue with possibility to memory leak

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 Image)

@fpapado
Copy link
Owner

fpapado commented Jul 24, 2019

Hi @mintaras! Thanks for the report.

This issue can come up in a number of ways in React components, and it might depend on the usage. It seems that the promises are canceled consistently here, but it's possible something is missing! Would you be able to give me a source example where this warning comes up?

@mintaras
Copy link
Author

Hey @fpapado

For some reason I cannot reproduce the issue anymore. I wonder could it happened because of other failing component

Thanks for quick response

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

2 participants