-
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 useMap
#155
Conversation
Codecov Report
@@ Coverage Diff @@
## master #155 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 38 39 +1
Lines 608 630 +22
Branches 109 110 +1
=========================================
+ Hits 608 630 +22
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# [3.5.0](v3.4.0...v3.5.0) (2021-06-24) ### Features * new hook `useMap` ([#155](#155)) ([523dd81](523dd81))
🎉 This PR is included in version 3.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I don't understand why this has a mutable object api in contrast to useList which returns the operations distinct to the list. This makes the library inconsistent? |
|
Understood. I wonder if it would be better to return the proxied apis in the way list does, although then risk of people mutating the map directly without the proxied versions unless they are removed from the returned map. All quite difficult trade offs so I understand your decision now. |
What new hook does?
Tracks the state of a
Map
.Checklist
react-use
#33