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
have you already thought about offering react-measure as a hook? I played a little bit with this idea and created a working proof of concept (see here: https://github.com/thomaskempel/use-resize-observer)
I copied some stuff from this repo and tried to offer similar interfaces. How do you like the idea?
Cheers,
Thomas
The text was updated successfully, but these errors were encountered:
Thank you for the proposal @thomaskempel! I recently did some explorations that are more of what I was trying to do in #97. It essentially splits out responsibilities for each phase of collecting measurements for flexibility. As of right now, I'm thinking of shipping a couple of different hook implementations that can be composed together in a useMeasure hook as seen in this codesandbox. My schedule has been a little hectic lately, but I'll put together a PR soon for feedback!
Hi y'all,
have you already thought about offering react-measure as a hook? I played a little bit with this idea and created a working proof of concept (see here: https://github.com/thomaskempel/use-resize-observer)
I copied some stuff from this repo and tried to offer similar interfaces. How do you like the idea?
Cheers,
Thomas
The text was updated successfully, but these errors were encountered: