data-table-row.tsx
3.36 KB
-
fix(data-table): capture row selection state in memo comparison · 8477f628
TanStack row objects may keep a stable reference while their selection state changes, so reading row.getIsSelected() inside the React.memo comparator could miss updates. Capture isSelected as an explicit prop and compare it instead, ensuring rows re-render when selection toggles.
RedwindA committed