Skip to content

Commit

Permalink
Improve comments on why derivedColumns is excluded for effect depende…
Browse files Browse the repository at this point in the history
…ncies
  • Loading branch information
eric-briscoe committed Nov 9, 2022
1 parent 109feae commit c4eb12f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion superset-frontend/src/components/Table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,12 @@ export function Table(props: TableProps) {
return () => {
interactiveTableUtils?.current?.clearListeners?.();
};
/**
* We DO NOT want this effect to trigger when derivedColumns changes as it will break functionality
* The exclusion from the effect dependencies is intentional and should not be modified
*/
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [wrapperRef, reorderable, resizable]);
}, [wrapperRef, reorderable, resizable, interactiveTableUtils]);

const theme = useTheme();

Expand Down

0 comments on commit c4eb12f

Please sign in to comment.