File size: 156 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 |
"use client"
import { useRef } from "react"
export function useLiveRef<T>(value: T) {
const ref = useRef<T>(value)
ref.current = value
return ref
}
|
1e92f2d |
1 2 3 4 5 6 7 8 9 10 |
"use client"
import { useRef } from "react"
export function useLiveRef<T>(value: T) {
const ref = useRef<T>(value)
ref.current = value
return ref
}
|