@@ -61,7 +61,7 @@ import BodyContext from './context/BodyContext';
61
61
import Body from './Body' ;
62
62
import useColumns from './hooks/useColumns' ;
63
63
import { useLayoutState , useTimeoutLock } from './hooks/useFrame' ;
64
- import { getPathValue , mergeObject , validateValue , getColumnsKey } from './utils/valueUtil' ;
64
+ import { getPathValue , validateValue , getColumnsKey } from './utils/valueUtil' ;
65
65
import ResizeContext from './context/ResizeContext' ;
66
66
import useStickyOffsets from './hooks/useStickyOffsets' ;
67
67
import ColGroup from './ColGroup' ;
@@ -226,16 +226,11 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
226
226
}
227
227
228
228
// ==================== Customize =====================
229
- const mergedComponents = React . useMemo (
230
- ( ) => mergeObject < TableComponents < RecordType > > ( components , { } ) ,
231
- [ components ] ,
232
- ) ;
233
-
234
229
const getComponent = React . useCallback < GetComponent > (
235
230
( path , defaultComponent ) =>
236
- getPathValue < CustomizeComponent , TableComponents < RecordType >> ( mergedComponents , path ) ||
231
+ getPathValue < CustomizeComponent , TableComponents < RecordType >> ( components || { } , path ) ||
237
232
defaultComponent ,
238
- [ mergedComponents ] ,
233
+ [ components ] ,
239
234
) ;
240
235
241
236
const getRowKey = React . useMemo < GetRowKey < RecordType > > ( ( ) => {
@@ -811,15 +806,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
811
806
) ,
812
807
isSticky,
813
808
} ) ,
814
- [
815
- prefixCls ,
816
- getComponent ,
817
- scrollbarSize ,
818
- direction ,
819
- flattenColumns ,
820
- stickyOffsets ,
821
- isSticky ,
822
- ] ,
809
+ [ prefixCls , getComponent , scrollbarSize , direction , flattenColumns , stickyOffsets , isSticky ] ,
823
810
) ;
824
811
825
812
const BodyContextValue = React . useMemo (
0 commit comments