Skip to content

Commit

Permalink
fix: trigger remount when columns change
Browse files Browse the repository at this point in the history
  • Loading branch information
hemengke1997 committed Jul 8, 2021
1 parent ccf9e99 commit e8c96e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function useTableResizableHeader<ColumnType extends Record<string, any>>(
}),
})) as ColumnType[];
setResizableColumns(t);
triggerMount.current += 1;
}, [columns]);

React.useEffect(() => {
Expand Down

0 comments on commit e8c96e1

Please sign in to comment.