mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
* Remove useKeyboardShortcuts in Results.tsx * Remove Cmd C overrides in table editor * Refactor onCellKeydown to a common utils, and add check for ctrlKey
13 lines
285 B
TypeScript
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 }
|