Skip to content

Commit 9dcfba8

Browse files
Performance (datatable): avoiding unnecessary re-render of cells of rows with no state-change (#7420)
* Improved performance of DataTable by adding conditions for when the BodyCell should re-render. * Created selectiveCompare function to assist components' memoization * Simplified BodyCell props parsing in BodyRow.js * Calculation of selected state for BodyCell being done in the BodyRow now. * Fixed performance issue of Datatable related to cell/row selection, by avoiding unnecessary re-render of cells. CAREFUL: some bugs detected related to MetaKey which are still not yet fixed. * Further performance improvements to BodyRow.js * Fixed bug related to the MetaKeySelection in TableBody.js * Bug fixing in BodyRow.js * Shifted functions helper functions selectiveCompare, absoluteCompare and getNestedValue from BodyCell.js to ObjectUtils and ran prettier to avoid pull request errors * Logging msg * Run prettier --------- Co-authored-by: Melloware <mellowaredev@gmail.com>
1 parent 8fd2b04 commit 9dcfba8

File tree

5 files changed

+857
-726
lines changed

5 files changed

+857
-726
lines changed

0 commit comments

Comments
 (0)