Skip to content

Commit f7e69bc

Browse files
authoredJun 11, 2024··
docs(react-table): add dependency because columnSizeVars does not change (#5597)
1 parent d6839d6 commit f7e69bc

File tree

1 file changed

+1
-1
lines changed
  • examples/react/column-resizing-performant/src

1 file changed

+1
-1
lines changed
 

‎examples/react/column-resizing-performant/src/main.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function App() {
105105
colSizes[`--col-${header.column.id}-size`] = header.column.getSize()
106106
}
107107
return colSizes
108-
}, [table.getState().columnSizingInfo])
108+
}, [table.getState().columnSizingInfo, table.getState().columnSizing])
109109

110110
//demo purposes
111111
const [enableMemo, setEnableMemo] = React.useState(true)

0 commit comments

Comments
 (0)
Please sign in to comment.