mirror of
https://github.com/supabase/supabase.git
synced 2026-05-10 02:39:56 -04:00
436bdb10ae
* Move all studio files from /studio to /apps/studio. * Move studio specific prettier ignores. * Fix the ui references from studio. * Fix the css imports. * Fix all package.json issues. * Fix the prettier setup for the studio app. * Add .turbo folder to prettierignore. * Fix the github workflows.
10 lines
192 B
TypeScript
10 lines
192 B
TypeScript
import { useRef } from 'react'
|
|
|
|
export const useLatest = <T>(value: T): { readonly current: T } => {
|
|
const ref = useRef(value)
|
|
ref.current = value
|
|
return ref
|
|
}
|
|
|
|
export default useLatest
|