@dxos/react-ui
    Preparing search index...

    Variable useRefCallbackConst

    useRefCallback: <T = any>() => { refCallback: RefCallback<T>; value: T | null }

    Custom React Hook that creates a ref callback and a state variable. The ref callback sets the state variable when the ref changes.

    Type declaration

      • <T = any>(): { refCallback: RefCallback<T>; value: T | null }
      • Type Parameters

        • T = any

        Returns { refCallback: RefCallback<T>; value: T | null }

        An object containing the ref callback and the current value of the ref.