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

Listeners not removed #42

Open
aorendorz opened this issue Aug 18, 2020 · 0 comments
Open

Listeners not removed #42

aorendorz opened this issue Aug 18, 2020 · 0 comments

Comments

@aorendorz
Copy link

I believe the event listeners should be removed in ReactBreakpoints.js in componentWillUnmount method (line: 133 and 138) not added again.
In some cases it may lead to a 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 ReactBreakpoints"

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