( outer: React.Ref<T> | undefined, local: React.RefObject<T | null>, )
| 28 | /** `composedRefCallback`, kept stable across renders for stable inputs so the |
| 29 | * incoming ref is not detached and reattached on every render. */ |
| 30 | export const useComposedRef = <T>( |
| 31 | outer: React.Ref<T> | undefined, |
| 32 | local: React.RefObject<T | null>, |
| 33 | ): React.RefCallback<T> => React.useMemo(() => composedRefCallback(outer, local), [outer, local]); |
no test coverage detected