MCPcopy Create free account
hub / github.com/adobe/react-spectrum / setDraggingCollectionRef

Function setDraggingCollectionRef

packages/react-aria/src/dnd/utils.ts:389–391  ·  view source on GitHub ↗
(ref: RefObject<HTMLElement | null>)

Source from the content-addressed store, hash-verified

387export let globalDndState: DnDState = {draggingKeys: new Set()};
388
389export function setDraggingCollectionRef(ref: RefObject<HTMLElement | null>): void {
390 globalDndState.draggingCollectionRef = ref;
391}
392
393export function setDraggingKeys(keys: Set<Key>): void {
394 globalDndState.draggingKeys = keys;

Callers 1

useDraggableCollectionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected