Skip to content

Nested Navigators Re-render the whole tree #11290

Answered by satya164
TwistedMinda asked this question in Q&A
Discussion options

You must be logged in to vote

The navigation state is stored at the root so memoization can't avoid re-rendering the whole tree. What can be avoided is re-rendering of any individual expensive components. If you can identify any specific components that are expensive to re-render then PRs are welcome.

Whether you have an empty view or not shouldn't matter because your screens don't re-render on navigation. You're also measuring in development mode which is less performant.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@TwistedMinda
Comment options

@TwistedMinda
Comment options

@jjspierx
Comment options

Answer selected by TwistedMinda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants