MCPcopy Create free account
hub / github.com/react-dnd/react-dnd / isDragging

Method isDragging

packages/react-dnd/src/createSourceFactory.js:63–69  ·  view source on GitHub ↗
(globalMonitor, sourceId)

Source from the content-addressed store, hash-verified

61 }
62
63 isDragging(globalMonitor, sourceId) {
64 if (!spec.isDragging) {
65 return sourceId === globalMonitor.getSourceId();
66 }
67
68 return spec.isDragging(this.props, this.monitor);
69 }
70
71 beginDrag() {
72 const item = spec.beginDrag(this.props, this.monitor, this.component);

Callers

nothing calls this directly

Calls 1

getSourceIdMethod · 0.80

Tested by

no test coverage detected