| 15 | import {useLayoutEffect} from './useLayoutEffect'; |
| 16 | |
| 17 | interface ContextValue<T> { |
| 18 | ref?: MutableRefObject<T | null>; |
| 19 | } |
| 20 | |
| 21 | // Syncs ref from context with ref passed to hook |
| 22 | export function useSyncRef<T>(context?: ContextValue<T> | null, ref?: RefObject<T | null>): void { |
nothing calls this directly
no outgoing calls
no test coverage detected