-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use MediaQueryList.addListener(func)
over window.addListener('resize', func)
#1
Comments
In this case we need create all observers on all breakpoints, and after that create subscribers on each. When using resize event u just, have only one observer on window resize event. |
You might want to optionally throttle the
|
|
Hi. Thanks for publishing this package. It doesn't seem like this issue was resolved. Would you like help implementing a |
Hi, will be good
|
There is a better API for handling media query changes:
https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener
The text was updated successfully, but these errors were encountered: