MCPcopy
hub / github.com/react-dnd/react-dnd / isDragging

Function isDragging

packages/examples/src/01-dustbin/stress-test/Box.tsx:24–27  ·  view source on GitHub ↗
(monitor)

Source from the content-addressed store, hash-verified

22 type,
23 item: { name },
24 isDragging(monitor) {
25 const item = monitor.getItem()
26 return name === item.name
27 },
28 collect: (monitor) => ({
29 isDragging: monitor.isDragging(),
30 }),

Callers 1

isDraggingMethod · 0.85

Calls 1

getItemMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…