-
Notifications
You must be signed in to change notification settings - Fork 724
feat: Add unmount to the renderHook documentation #1319
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
✅ Deploy Preview for testing-library ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
function renderHook< | ||
Result, | ||
Props, | ||
Q extends Queries = typeof queries, | ||
Container extends Element | DocumentFragment = HTMLElement, | ||
BaseElement extends Element | DocumentFragment = Container, | ||
>( | ||
render: (initialProps: Props) => Result, | ||
options?: RenderHookOptions<Props, Q, Container, BaseElement>, | ||
): RenderHookResult<Result, Props> |
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.
Modified the type to match the actual type.
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!
@all-contributors add @ssi02014 for docs |
In the "renderHook" documentation, I noticed that "unmount" was not among the results, so I added it.