-
Notifications
You must be signed in to change notification settings - Fork 232
Upgrade the typings dependency and update the docs #414
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #414 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 4
Lines 94 94
Branches 15 15
=========================================
Hits 94 94 Continue to review full report at Codecov.
|
docs/usage/advanced-hooks.md
Outdated
|
||
act(() => { | ||
result.current.increment() | ||
}) | ||
|
||
expect(result.current.count).toBe(2) | ||
|
||
rerender({ step: -2 }) |
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.
Given that this is a relatively niche feature, I think we would be better off have the basic example just with a wrapper
and then some text about using props
with the wrapper
before showing the more complex example.
Thoughts?
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.
I moved the revision as a new section "Providing Props". It may help to show the use case about using initialProps
and the rerender
method with wrapper
.
This reverts commit 482ee46.
- Add new section "Providing props" under "Advanced Hooks/Context"
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.
Thanks.
What:
wrapper
optionWhy:
Checklist: