UNPKG

@mmcodemark/fuselage-hooks

Version:

React hooks for Fuselage, Rocket.Chat's design system and UI toolkit

10 lines 343 B
import type { MutableRefObject } from 'react'; /** * Hook equivalent to useRef, but with a lazy initialization for computed value. * * @param init - the function the computes the ref value * @returns the ref * @public */ export declare const useLazyRef: <T>(init: () => T) => MutableRefObject<T>; //# sourceMappingURL=useLazyRef.d.ts.map