data-table-row.tsx
4.53 KB
-
fix(data-table): update table body immediately when toggling columns (#6253) · dc9aeab9
DataTableRow's React.memo did not depend on columnVisibility. TanStack row references stay stable when visible columns change, so the table body did not refresh after View -> Toggle columns until another action rebuilt the column definitions. Capture a visible column id signature (visibleColumnIds) outside the memo and compare it, matching the existing isSelected snapshot pattern. All tables that use DataTableRow pick up the fix.
DawnMoon1542 committed