'use client' import { useCallback, useRef } from 'react' /** * Don't use this, could be deleted anytime. * * @internal */ export function useEffectEvent unknown>(callback: F): F { const ref = useRef(callback) ref.current = callback return useCallback(((...params) => ref.current(...params)) as F, []) }