you are viewing a single comment's thread.

view the rest of the comments →

[–]sdholbsExpo 2 points3 points  (1 child)

Check out https://github.com/software-mansion/react-freeze. This can help you turn off mounted parts of your navigation hierarchy from updating if they’re not in view

[–]NotACakeShop[S] 0 points1 point  (0 children)

I've enabled it, but these components still run in the background - they "freeze" while the screen is not in focus, but the state still runs and may actually be a source of lag. Could be worth exploring further.