Skip to content

Commit

Permalink
fix: async columns
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jul 8, 2021
1 parent 898d46c commit 7877183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function useTableResizableHeader<ColumnType extends Record<string, any>>(
}),
})) as ColumnType[];
setResizableColumns(t);
}, []);
}, [columns]);

React.useEffect(() => {
const width = resizableColumns.reduce((total, current) => {
Expand Down

0 comments on commit 7877183

Please sign in to comment.