You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Janpot, I just playing 🤾♂️ around with useContentRect(ref). It's fantastic 👍 and first I'm a little bit confusing 😕 from its name. I think you should rename it something else so it can easily understand the meaning behind this logic. We have put a step ahead to include this hook inside the platform library.
I picked the name because it was consistent with the naming of properties in the ResizeObserver. I prefer to use the terms of the underlying platform if they make sense. Other than that, I don't really care how it's named.
I've been using this hook
To measure elements and react on size changes. Can be used as
Looks like something like this could be a nice addition to this library. If not, feel free to just close and ignore. 🙂
The text was updated successfully, but these errors were encountered: