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

The ResizeObserver omits unobserving in the componentWillUnmount, which may lead to memory leak when the component is unmount #1312

Open
flylxq opened this issue Jul 14, 2018 · 3 comments

Comments

@flylxq
Copy link

flylxq commented Jul 14, 2018

The unmounted component can't be GC, because the observer still observes the detached component.

@flylxq flylxq changed the title The ResizeObserver omits unobserving in the componentWillUnmount which may lead to memory leak when the component is unmount The ResizeObserver omits unobserving in the componentWillUnmount, which may lead to memory leak when the component is unmount Jul 14, 2018
@jberrydev
Copy link

I have also seen this leak to the tune of 5MB.

@yuanyuanlife
Copy link

Any solution now?

@afc163
Copy link
Contributor

afc163 commented Nov 2, 2020

+1

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

No branches or pull requests

5 participants