mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Since useColumns was relying on groupBy logic, this was code smell. I wanted useGroupBy to be able to add that logic all by itself and not have to have dependencies in the core of the table. To fix that, I've moved the core column and row logic to the useTable hook and added a new hook 'columnsBeforeHeaderGroups' to allow useGroupBy to do what i needs in a more pure way.
13 lines
623 B
JavaScript
Executable File
13 lines
623 B
JavaScript
Executable File
import * as utils from './utils'
|
|
export { utils }
|
|
export { useTable } from './hooks/useTable'
|
|
export { useTableState, defaultState } from './hooks/useTableState'
|
|
export { useExpanded } from './plugin-hooks/useExpanded'
|
|
export { useFilters } from './plugin-hooks/useFilters'
|
|
export { useGroupBy } from './plugin-hooks/useGroupBy'
|
|
export { useSortBy } from './plugin-hooks/useSortBy'
|
|
export { usePagination } from './plugin-hooks/usePagination'
|
|
export { useFlexLayout } from './plugin-hooks/useFlexLayout'
|
|
export { useTokenPagination } from './plugin-hooks/useTokenPagination'
|
|
export { actions, addActions } from './actions'
|