Files
supabase/apps/studio/hooks/deprecated.ts
T
Joshen Lim d25451efe5 Remove useKeyboardShortcuts in Results.tsx (#34733)
* Remove useKeyboardShortcuts in Results.tsx

* Remove Cmd C overrides in table editor

* Refactor onCellKeydown to a common utils, and add check for ctrlKey
2025-04-04 18:50:02 +08:00

13 lines
285 B
TypeScript

import TooltipListener from 'components/to-be-cleaned/TooltipListener'
import { useEffect, useRef } from 'react'
function usePrevious(value: any) {
const ref = useRef()
useEffect(() => {
ref.current = value
})
return ref.current
}
export { TooltipListener, usePrevious }