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

enableLayoutChangeEvents should be unregisterable #185

aendrew opened this issue May 14, 2019 · 0 comments


Copy link

commented May 14, 2019

This is kind of both a feature request and bug report.

To wit, enableLayoutChangeEvents() should return an array of media queries and event listeners so they can be torn down in, for example, the useEffect() hook or componentDidUnmount() lifecycle event in React.

I've written code to do this already and will PR it when I get a moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.