Skip to content

React trees too deep and how to avoid re-renders #20

@guilhermebruzzi

Description

@guilhermebruzzi

What is to be discussed?

The most common performance issue with our React Apps is too many unnecessary re-renders.
If the React tree is deeper the problem is worst.

How should we investigate and solve this kind of problem? What is our guide to maintain that accountable?

Describe the solution you'd like

We should use the profiler on React DevTools and see the most re-rendered components from time to time and fix them by using shouldComponentUpdate or useMemo hook depend if it is a component class or function. There is probably a lot more solutions to these type of cases that you guys can list also.

But I think we should create metrics about this kind of performance on our apps (like tests that generate them), with the limits of time and renders that make sense. On inStore we neglected this problem, only to see on low payment devices that our performance wasn't good.

Also we should have a guide with examples on to how to solve this kind of bottleneck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions