Commit 9fce7f8
committed
Avoid unnecessary table rerenders
This patch prevents certain actions from causing all table rows
to rerender, if the actions did not actually effect the table rows.
It does this by refactoring the table component so that redux state
updates only trigger rerenders in the
components that actually use the update data.
Actions include:
- Selecting a single row.
- Opening the page size dropdown.
- Displaying a tooltip by hovering over a hoverable table element.1 parent 4ebc58b commit 9fce7f8
7 files changed
Lines changed: 461 additions & 309 deletions
File tree
- src
- components
- events
- selectors
- slices
- thunks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
| 216 | + | |
218 | 217 | | |
219 | 218 | | |
220 | 219 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
142 | | - | |
| 141 | + | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
0 commit comments