-
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: implement useRenderCount
hook
#990
Conversation
Thanks for the PR! I had a quick look at the code. Seems OK so far. I'll do a more thorough review later. I think it would be more correct english to call the hook Running the workflows on this now. @xobotyi What do you think about this hook? |
Codecov Report
@@ Coverage Diff @@
## master #990 +/- ##
=======================================
Coverage 99.61% 99.61%
=======================================
Files 60 61 +1
Lines 1036 1041 +5
Branches 163 163
=======================================
+ Hits 1032 1037 +5
Misses 2 2
Partials 2 2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
- You havent updated
README.md
index.ts
is missing reexport of this hook- You should add note within migrating-from-react-use.story.mdx
useRenderCount
6716782
to
47d7ce0
Compare
useRenderCount
useRenderCount
hook
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.
Pushed a couple of typo fixes, otherwise looks good to me!
# [19.2.0](v19.1.0...v19.2.0) (2022-11-20) ### Features * implement `useRenderCount` hook ([#990](#990)) ([efbeeb1](efbeeb1))
🎉 This PR is included in version 19.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What new hook does?
useRendersCount tracks component's renders count including the first render.
#33
Checklist