File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import cls from 'classnames' ;
2- import { useEvent } from 'rc-util' ;
2+ import useEvent from 'rc-util/lib/hooks/useEvent ' ;
33import useMergedState from 'rc-util/lib/hooks/useMergedState' ;
44import isEqual from 'rc-util/lib/isEqual' ;
55import warning from 'rc-util/lib/warning' ;
Original file line number Diff line number Diff line change 1- import { useEvent } from 'rc-util' ;
21import * as React from 'react' ;
2+ import useEvent from 'rc-util/lib/hooks/useEvent' ;
3+ import useLayoutEffect from 'rc-util/lib/hooks/useLayoutEffect' ;
34import { UnstableContext } from '../context' ;
45import type { Direction , OnStartMove } from '../interface' ;
56import type { OffsetValues } from './useOffset' ;
@@ -44,7 +45,7 @@ function useDrag(
4445
4546 const { onDragStart, onDragChange } = React . useContext ( UnstableContext ) ;
4647
47- React . useLayoutEffect ( ( ) => {
48+ useLayoutEffect ( ( ) => {
4849 if ( draggingIndex === - 1 ) {
4950 setCacheValues ( rawValues ) ;
5051 }
You can’t perform that action at this time.
0 commit comments