Skip to content

Commit

Permalink
noop const
Browse files Browse the repository at this point in the history
  • Loading branch information
ruggi committed Nov 20, 2023
1 parent efa31a1 commit 2c1813f
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import type { MouseCallbacks } from '../select-mode/select-mode-hooks'
import { NO_OP } from '../../../../core/shared/utils'
import { useKeepShallowReferenceEquality } from '../../../../utils/react-performance'

const noop: MouseCallbacks = {
onMouseMove: NO_OP,
onMouseDown: NO_OP,
onMouseUp: NO_OP,
}

export function useFollowModeSelectAndHover(): MouseCallbacks {
return useKeepShallowReferenceEquality({
onMouseMove: NO_OP,
onMouseDown: NO_OP,
onMouseUp: NO_OP,
})
return noop
}

0 comments on commit 2c1813f

Please sign in to comment.