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

Function clearGlobalDnDState

packages/react-aria/src/dnd/utils.ts:401–403  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399}
400
401export function clearGlobalDnDState(): void {
402 globalDndState = {draggingKeys: new Set()};
403}
404
405export function setGlobalDnDState(state: DnDState): void {
406 globalDndState = state;

Callers 2

onDragEndFunction · 0.90
onDropFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected