File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -45,14 +45,15 @@ const TransitionWrapper = React.forwardRef<
45
45
mergedRef ( safeFindDOMNode ( r ) ) ;
46
46
} ;
47
47
48
- const normalize = (
49
- callback ?: ( node : HTMLElement , param : unknown ) => void ,
50
- ) => ( param : unknown ) => {
48
+ const normalize = ( callback ?: ( node : HTMLElement , param : any ) => void ) => (
49
+ param : any ,
50
+ ) => {
51
51
if ( callback && nodeRef . current ) {
52
52
callback ( nodeRef . current , param ) ;
53
53
}
54
54
} ;
55
55
56
+ /* eslint-disable react-hooks/exhaustive-deps */
56
57
const handleEnter = useCallback ( normalize ( onEnter ) , [ onEnter ] ) ;
57
58
const handleEntering = useCallback ( normalize ( onEntering ) , [ onEntering ] ) ;
58
59
const handleEntered = useCallback ( normalize ( onEntered ) , [ onEntered ] ) ;
@@ -62,6 +63,7 @@ const TransitionWrapper = React.forwardRef<
62
63
const handleAddEndListener = useCallback ( normalize ( addEndListener ) , [
63
64
addEndListener ,
64
65
] ) ;
66
+ /* eslint-enable react-hooks/exhaustive-deps */
65
67
66
68
return (
67
69
< Transition
You can’t perform that action at this time.
0 commit comments