Skip to content

Commit

Permalink
feat: add data dependency to updateColumnsEffect for improved respons…
Browse files Browse the repository at this point in the history
…iveness

Signed-off-by: Amit Amrutiya <[email protected]>
  • Loading branch information
amitamrutiya committed Nov 14, 2024
1 parent dba20be commit d97abce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/custom/ResponsiveDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ const ResponsiveDataTable = ({
});
updateCols && updateCols([...columns]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [columnVisibility, updateCols]);
}, [columnVisibility, updateCols, data]);

React.useEffect(() => {
updateColumnsEffect();
Expand Down

0 comments on commit d97abce

Please sign in to comment.