react-lazy-images icon indicating copy to clipboard operation
react-lazy-images copied to clipboard

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

Open mintaras opened this issue 6 years ago • 2 comments

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)

mintaras avatar Jul 24 '19 08:07 mintaras

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?

fpapado avatar Jul 24 '19 08:07 fpapado

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

mintaras avatar Jul 24 '19 09:07 mintaras