mirror of
https://github.com/gosticks/react-table.git
synced 2026-06-28 17:10:01 +00:00
Update useTable.js
This commit is contained in:
@@ -8,8 +8,7 @@ import {
|
||||
flexRender,
|
||||
decorateColumnTree,
|
||||
makeHeaderGroups,
|
||||
flattenBy,
|
||||
determineHeaderVisibility,
|
||||
flattenBy
|
||||
} from '../utils'
|
||||
|
||||
const propTypes = {
|
||||
@@ -230,9 +229,6 @@ export const useTable = (props, ...plugins) => {
|
||||
instanceRef.current.rows = rows
|
||||
instanceRef.current.flatRows = flatRows
|
||||
|
||||
// Determine column visibility
|
||||
determineHeaderVisibility(instanceRef.current)
|
||||
|
||||
// Provide a flat header list for utilities
|
||||
instanceRef.current.flatHeaders = headerGroups.reduce(
|
||||
(all, headerGroup) => [...all, ...headerGroup.headers],
|
||||
|
||||
Reference in New Issue
Block a user