MCPcopy
hub / github.com/adobe/react-spectrum / ContextValue

Interface ContextValue

packages/react-aria/src/utils/useSyncRef.ts:17–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 1

ElementNodepackages/react-aria/src/collections/Do

Calls

no outgoing calls

Tested by

no test coverage detected