ngduc / react-tabulator

React Tabulator is based on tabulator - a JS table library with many advanced features.
https://codesandbox.io/s/0mwpy612xw?module=/src/components/Home.js
MIT License
366 stars 84 forks source link

Excessive renders when changing table data #240

Open IvanSavoskin opened 3 years ago

IvanSavoskin commented 3 years ago

Enhancement: I noticed some problems with unnecessary renders. If the data in the table has changed, then everything is completely re-rendered, therefore, if we scrolled to the bottom of the table, then changed the data there, then the scroll is reset to the beginning of the table. You can check this in the examples on the github (https://codesandbox.io/s/elastic-rgb-qgict?file=/src/App.js). At the same time, in the examples of the tabulator itself, everything works correctly and there is no complete redrawing when the data changes.

Environment Details