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

Function getDroppableCollectionId

packages/react-aria/src/dnd/utils.ts:37–44  ·  view source on GitHub ↗
(state: DroppableCollectionState)

Source from the content-addressed store, hash-verified

35export const DIRECTORY_DRAG_TYPE: symbol = Symbol();
36
37export function getDroppableCollectionId(state: DroppableCollectionState): string {
38 let {id} = droppableCollectionMap.get(state) || {};
39 if (!id) {
40 throw new Error('Droppable item outside a droppable collection');
41 }
42
43 return id;
44}
45
46export function getDroppableCollectionRef(
47 state: DroppableCollectionState

Callers 1

useDropIndicatorFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected