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

Function setGlobalDnDState

packages/react-aria/src/dnd/utils.ts:405–407  ·  view source on GitHub ↗
(state: DnDState)

Source from the content-addressed store, hash-verified

403}
404
405export function setGlobalDnDState(state: DnDState): void {
406 globalDndState = state;
407}
408
409// Util function to check if the current dragging collection ref is the same as the current targeted droppable collection ref.
410// Allows a droppable ref arg in case the global drop collection ref hasn't been set

Callers 1

onDropFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected