File tree Expand file tree Collapse file tree 3 files changed +10
-26
lines changed
packages/table-core/src/features Expand file tree Collapse file tree 3 files changed +10
-26
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ import ReactDOM from 'react-dom'
3
3
4
4
import './index.css'
5
5
6
- import { createTable , useTable } from '@tanstack/react-table'
7
- import { ColumnResizeMode } from '@tanstack/react-table/build/types/features/ColumnSizing'
6
+ import { createTable , useTable , ColumnResizeMode } from '@tanstack/react-table'
8
7
9
8
type Person = {
10
9
firstName : string
@@ -295,13 +294,6 @@ function App() {
295
294
)
296
295
}
297
296
298
- function Test ( ) {
299
- React . useEffect ( ( ) => {
300
- console . log ( 'mount' )
301
- } , [ ] )
302
- return null
303
- }
304
-
305
297
ReactDOM . render (
306
298
< React . StrictMode >
307
299
< App />
Original file line number Diff line number Diff line change @@ -85,18 +85,10 @@ function App() {
85
85
state : {
86
86
pagination,
87
87
} ,
88
- onPaginationChange : updater => {
89
- setPagination ( old => {
90
- // debugger
91
- const newValue = functionalUpdate ( updater , old )
92
- return newValue
93
- } )
94
- } ,
88
+ onPaginationChange : setPagination ,
95
89
paginateRowsFn : paginateRowsFn ,
96
90
columnFilterRowsFn : columnFilterRowsFn ,
97
91
debugTable : true ,
98
- // debugHeaders: true,
99
- // debugColumns: true,
100
92
} )
101
93
102
94
return (
Original file line number Diff line number Diff line change @@ -132,15 +132,15 @@ export type FiltersInstance<TGenerics extends PartialGenerics> = {
132
132
133
133
//
134
134
135
- export function getDefaultColumn <
136
- TGenerics extends PartialGenerics
137
- > ( ) : FiltersColumnDef < TGenerics > {
138
- return {
139
- filterType : 'auto' ,
140
- }
141
- }
142
-
143
135
export const Filters = {
136
+ getDefaultColumn : <
137
+ TGenerics extends PartialGenerics
138
+ > ( ) : FiltersColumnDef < TGenerics > => {
139
+ return {
140
+ filterType : 'auto' ,
141
+ }
142
+ } ,
143
+
144
144
getInitialState : ( ) : FiltersTableState => {
145
145
return {
146
146
columnFilters : [ ] ,
You can’t perform that action at this time.
0 commit comments