diff --git a/src/features/grid/components/heatmap-grid.tsx b/src/features/grid/components/heatmap-grid.tsx index 1b2011a..9bcc334 100644 --- a/src/features/grid/components/heatmap-grid.tsx +++ b/src/features/grid/components/heatmap-grid.tsx @@ -119,11 +119,13 @@ interface VirtualRowProps { row: Row; rowHeight: number; isSelected: boolean; + columnVisibility: Record; } -const GridRow = React.memo(({ virtualRow, row, rowHeight, isSelected }: VirtualRowProps) => { +const GridRow = React.memo(({ virtualRow, row, rowHeight, isSelected, columnVisibility }: VirtualRowProps) => { // Uniquement la ligne concernée écoute son propre changement pour l'effet visuel const effectiveGamme = useGridStore((s) => s.draftChanges[row.original.codein] ?? row.original.codeGamme); + void columnVisibility; // Force re-render via React.memo when visibility changes return ( );