-
Notifications
You must be signed in to change notification settings - Fork 99
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 usePreviousDistinct
#585
Conversation
…stinct value from prev renders Adds a hook requested from react-hookz#33 react-hookz#33
…of usePreviousDistinct existing -
Codecov Report
@@ Coverage Diff @@
## master #585 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 45 46 +1
Lines 798 812 +14
Branches 150 152 +2
=========================================
+ Hits 798 812 +14
Continue to review full report at Codecov.
|
useDeepCompareEffect
usePreviousDistinct
🎉 This PR is included in version 12.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What new hook does?
Outlined in #33 and here.
While I haven't needed this hook myself, I began understanding the value and differences
usePrevious
andusePreviousDistinct
offer. I feel like people who reach forusePrevious
may wish to know thatusePreviousDistinct
exists. I may not have done well on that front, but wanted to give it a go.Checklist
react-use
#33