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

Use ResizeObserver if supported #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mei33
Copy link

@mei33 mei33 commented Oct 31, 2019

This PR allows to listen for box size changes even without browser window resize. So if you have something like resizable grid with your components in it, your components will listen for changing grid items size.

@mei33
Copy link
Author

mei33 commented Nov 12, 2019

@Swizec what are you think about that? does it looks good to you? maybe you have some suggestions?

@cowboy
Copy link

cowboy commented Mar 18, 2020

This change is pretty necessary. As it currently stands, this hook's returned values won't change if a child element causes it to resize!

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

Successfully merging this pull request may close these issues.

2 participants