useDimensions icon indicating copy to clipboard operation
useDimensions copied to clipboard

Use ResizeObserver if supported

Open mei33 opened this issue 6 years ago • 2 comments

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 avatar Oct 31 '19 13:10 mei33

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

mei33 avatar Nov 12 '19 06:11 mei33

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!

cowboy avatar Mar 18 '20 22:03 cowboy