Skip to content

Commit

Permalink
docs(react-table): add dependency because columnSizeVars does not cha…
Browse files Browse the repository at this point in the history
…nge (#5597)
  • Loading branch information
yoonminsang authored Jun 11, 2024
1 parent d6839d6 commit f7e69bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/react/column-resizing-performant/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f7e69bc

Please sign in to comment.