@@ -8,7 +8,7 @@ import type { HoverContextProps } from '../context/HoverContext';
8
8
import HoverContext from '../context/HoverContext' ;
9
9
import PerfContext from '../context/PerfContext' ;
10
10
import StickyContext from '../context/StickyContext' ;
11
- import { useContextSelector } from '../ContextSelector ' ;
11
+ import { useContext } from '@rc-component/context ' ;
12
12
import type {
13
13
AlignType ,
14
14
CellEllipsisType ,
@@ -146,7 +146,7 @@ function Cell<RecordType extends DefaultRecordType>(
146
146
147
147
const perfRecord = React . useContext ( PerfContext ) ;
148
148
const supportSticky = React . useContext ( StickyContext ) ;
149
- const allColumnsFixedLeft = useContextSelector ( BodyContext , 'allColumnsFixedLeft' ) ;
149
+ const allColumnsFixedLeft = useContext ( BodyContext , 'allColumnsFixedLeft' ) ;
150
150
151
151
// ==================== Child Node ====================
152
152
const [ childNode , legacyCellProps ] = React . useMemo <
@@ -342,7 +342,7 @@ const WrappedCell = React.forwardRef((props: CellProps<any>, ref: React.Ref<any>
342
342
const mergedColSpan = colSpan ?? cellColSpan ;
343
343
const mergedRowSpan = rowSpan ?? cellRowSpan ;
344
344
345
- const { onHover, hovering } = useContextSelector ( HoverContext , cxt => {
345
+ const { onHover, hovering } = useContext ( HoverContext , cxt => {
346
346
const isHovering = inHoverRange ( index , mergedRowSpan || 1 , cxt ?. startRow , cxt ?. endRow ) ;
347
347
348
348
return {
0 commit comments