Skip to content
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

docs: changed return type of useEffect() #847

Merged
merged 1 commit into from
Aug 12, 2020

Conversation

Cordobo
Copy link
Contributor

@Cordobo Cordobo commented Aug 10, 2020

Hi,

thanks for creating and maintaining such a great lib.

I stumbled upon a typo in the docs for V5. The return type for an arrow function within an useEffect should return an object instead of a boolean. This way TypeScript won't complain about a return type other than void.

This is for version 5 of react-navigation only and therefore only changed in the corresponding versioned_docs.

Changed return type of arrow function used within an useEffect to return an object instead of a boolean. This way TypeScript won't complain about your code.
@netlify
Copy link

netlify bot commented Aug 10, 2020

Deploy preview for react-navigation-docs ready!

Built with commit e1c97a7

https://deploy-preview-847--react-navigation-docs.netlify.app

@eriveltonelias eriveltonelias merged commit 306b4ae into react-navigation:main Aug 12, 2020
@Cordobo Cordobo deleted the patch-1 branch August 13, 2020 14:24
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