Skip to content

fixes the re-render warning for using useIsFocused #1299

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 5 commits into from
Jan 13, 2024

Conversation

omid-ebrahimi
Copy link
Contributor

It re-renders the direct component that contains this hook, but it was mentioned that it re-renders the screen.

READ ME PLEASE

TL;DR: Make sure to add your changes to versioned docs

Thanks for opening a PR!

The docs cover several versions of react-navigation, and in some cases there are several files (for version 1, version 2 and etc.) that all describe a single page of the docs (eg. "Getting Started").

Please make sure that the edit you're making in docs/file-you-edited.md is also included in the file for the correct version, eg. /versioned_docs/version-3.x/file-you-edited.md for version 3. If such file doesn't exist, please create it. 👍

It re-renders the direct component that contains this hook, but it was mentioned that it re-renders the screen.
Copy link

netlify bot commented Jan 11, 2024

Deploy Preview for react-navigation-docs ready!

Name Link
🔨 Latest commit 739dbf6
🔍 Latest deploy log https://app.netlify.com/sites/react-navigation-docs/deploys/65a15fa826b6020008a32d2b
😎 Deploy Preview https://deploy-preview-1299--react-navigation-docs.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.

@omid-ebrahimi omid-ebrahimi marked this pull request as ready for review January 11, 2024 22:35
omid-ebrahimi and others added 2 commits January 12, 2024 16:46
Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

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

Thanks

@satya164 satya164 merged commit 66a6c23 into react-navigation:main Jan 13, 2024
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