Describe the bug
Every time one cell is edited in the examples/react/editable-data example, the entire table rerenders. If a user wants to render a large amount of rows, this strategy will start getting slow. At 50 rows in the example it takes 14.4 milliseconds to rerender the whole table with basic data. I've narrowed the unstable reference down to cell.getContext().
Your minimal, reproducible example
https://github.com/TanStack/table/tree/main/examples/react/editable-data
Steps to reproduce
- Open react dev tools profiler
- Start profiling
- Click on a cell to edit it
- Click off the cell
- Stop the profiler
- Check the results
Expected behavior
Only the affected cell should rerender unless my other cells have a direct dependency on it. I've even tried creating memoized components all the way down to the cell.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows
react-table version
8.8.5
TypeScript version
No response
Additional context
If this is something the library doesn't support then I think there should be a documentation section on it describing the pitfalls of rendering a large amount of rows and/or using complex cells.
Terms & Code of Conduct
Describe the bug
Every time one cell is edited in the examples/react/editable-data example, the entire table rerenders. If a user wants to render a large amount of rows, this strategy will start getting slow. At 50 rows in the example it takes 14.4 milliseconds to rerender the whole table with basic data. I've narrowed the unstable reference down to cell.getContext().
Your minimal, reproducible example
https://github.com/TanStack/table/tree/main/examples/react/editable-data
Steps to reproduce
Expected behavior
Only the affected cell should rerender unless my other cells have a direct dependency on it. I've even tried creating memoized components all the way down to the cell.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows
react-table version
8.8.5
TypeScript version
No response
Additional context
If this is something the library doesn't support then I think there should be a documentation section on it describing the pitfalls of rendering a large amount of rows and/or using complex cells.
Terms & Code of Conduct