We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fa6f91 commit 042711eCopy full SHA for 042711e
src/components/table/body/header/index.js
@@ -4,13 +4,18 @@ import { useTableState } from "../../provider"
4
import Cell from "./cell"
5
6
const rerenderSelector = state => {
7
+ const columns = state.table?.getAllColumns() || []
8
+
9
return {
10
sizing: state.columnSizing,
11
expanded: state.expanded,
12
columnVisibility: state.columnVisibility,
13
selectedRows: state.selectedRows,
14
grouping: state.grouping,
- columnsCount: state.table && state.table.getAllColumns().length,
15
+ columnsCount: columns.length,
16
+ columnsFilters: columns.map(({ columnDef }) => ({
17
+ filterOptions: columnDef?.meta?.filter?.options,
18
+ })),
19
}
20
21
0 commit comments