influxdata / influxdata/ui

Dashboard Performance - Make components Pure or Memorize them

Open
#3,556 0 comments 0 reactions 0 assignees View on GitHub
performance team/dumplings team/ui
Dominant language
TypeScript
Stars
117
Forks
51
Avg merge
2d 15h
Merged PRs (30d)
4

Description

### Background
Components can often needlessly re-render when receiving the same props due to how react does comparisons between previous props and next props. Making class components `PureComponent` or wrapping function components in `React.Memo` can solve this problem for components that re-render frequently but have props that don't change Frequently

### Potential Components:
- [ ] `NavHeader`
- [ ] `InnerView` (inside visualization/components/View.tsx)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.