-
Notifications
You must be signed in to change notification settings - Fork 94
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
feat: new hook useMeasure
#80
Conversation
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 26 +1
Lines 344 355 +11
Branches 69 69
=========================================
+ Hits 344 355 +11
Continue to review full report at Codecov.
|
915282c
to
5369a94
Compare
Why not just call this "useResize"? |
It does not resize anything? 🤔 |
# [1.22.0](v1.21.0...v1.22.0) (2021-05-25) ### Features * new hook `useMeasure` ([#80](#80)) ([354efc6](354efc6))
🎉 This PR is included in version 1.22.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What new hook does?
Uses ResizeObserver to track element dimensions and re-render component when they change.
Checklist
react-use
#33