Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
docs: changed return type of useEffect() #847
Conversation
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.
|
Deploy preview for react-navigation-docs ready! Built with commit e1c97a7 https://deploy-preview-847--react-navigation-docs.netlify.app |
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.