-
Notifications
You must be signed in to change notification settings - Fork 232
feature/use rerender props in wrapper #381
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
feature/use rerender props in wrapper #381
Conversation
Codecov Report
@@ Coverage Diff @@ ## master #381 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 4 4 Lines 94 94 Branches 15 15 ========================================= Hits 94 94
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.
Perfect, thanks.
Uh oh!
There was an error while loading. Please reload this page.
What:
Updates
renderHook
to pass props into a providedwrapper
component. See discussion here: #322 w @mpeyperWhy:
This allows easily testing how a hook response to changes in a parent context, without having to mutate values in test code.
How:
Pass the value of
hookProps.current
into render.Checklist: