T
TanStack•2y ago
rising-crimson

Table UI breakdown on data update

Hi there! We have an issue with the TanStack table on data updates. Its core UI structure seems to break down whenever a new row gets inserted into the data array, or the array gets replaced with a new array containing more rows.
No description
No description
3 Replies
rising-crimson
rising-crimsonOP•2y ago
I need to change tabs to get the table to show the correct behavior (see left image). I have added the core TanStack table tsx file below. Thank you for all your help 🙂
rising-crimson
rising-crimsonOP•2y ago
rising-crimson
rising-crimsonOP•2y ago
Update: Wrapping my table component in a div and unmounting the div fixes the issue. We now unmount whenever the data length changes.

Did you find this page helpful?