Overview
useDragDropManager returns the DragDropManager instance that the surrounding DragDropProvider created. Use it for advanced cases that need direct access to the manager — registering custom event listeners on manager.monitor, looking up registered plugins via manager.registry, or imperatively dispatching actions.
For most use cases — rendering UI based on drag state, reordering items in onDragEnd, etc. — prefer the higher-level hooks (useDragOperation, useDragDropMonitor) or the event handlers on DragDropProvider itself.
API Reference
Output
DragDropManager | null
The
DragDropManager instance from the nearest ancestor DragDropProvider, or a shared default manager instance if no provider is present.Related
useDragOperation— reactive read ofsourceandtargetuseDragDropMonitor— subscribe to lifecycle eventsDragDropManager— full reference for the manager API