Skip to content

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

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

ssi02014
Copy link
Contributor

@ssi02014 ssi02014 commented Oct 9, 2023

In the "renderHook" documentation, I noticed that "unmount" was not among the results, so I added it.

@netlify
Copy link

netlify bot commented Oct 9, 2023

Deploy Preview for testing-library ready!

Name Link
🔨 Latest commit 3b4c9b6
🔍 Latest deploy log https://app.netlify.com/sites/testing-library/deploys/6523ae9a34a04f0008319929
😎 Deploy Preview https://deploy-preview-1319--testing-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +336 to 345
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>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ssi02014 ssi02014 changed the title fix: renderHook docs feat: Add unmount to the renderHook documentation Oct 9, 2023
Copy link
Member

@eps1lon eps1lon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@eps1lon eps1lon merged commit 0beeb70 into testing-library:main Oct 9, 2023
@eps1lon
Copy link
Member

eps1lon commented Oct 9, 2023

@all-contributors add @ssi02014 for docs

@allcontributors
Copy link
Contributor

@eps1lon

@ssi02014 already contributed before to doc

@ssi02014 ssi02014 deleted the fix/renderHook branch October 9, 2023 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants