From fac6486fbf96d929b737768b987f3e24dc6b5a1a Mon Sep 17 00:00:00 2001 From: yoonminsnag Date: Tue, 11 Jun 2024 16:12:46 +0900 Subject: [PATCH] fix: add dependency because columnSizeVars does not change --- examples/react/column-resizing-performant/src/main.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/react/column-resizing-performant/src/main.tsx b/examples/react/column-resizing-performant/src/main.tsx index 79c16e3537..089060f209 100644 --- a/examples/react/column-resizing-performant/src/main.tsx +++ b/examples/react/column-resizing-performant/src/main.tsx @@ -105,7 +105,7 @@ function App() { colSizes[`--col-${header.column.id}-size`] = header.column.getSize() } return colSizes - }, [table.getState().columnSizingInfo]) + }, [table.getState().columnSizingInfo, table.getState().columnSizing]) //demo purposes const [enableMemo, setEnableMemo] = React.useState(true)