Open tho-graf opened 5 years ago
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!
It would be great to have this feature, is it still relevant?..
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