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

Method isDragging

packages/react-dnd/src/createSourceMonitor.js:30–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 }
29
30 isDragging() {
31 invariant(
32 !isCallingIsDragging,
33 'You may not call monitor.isDragging() inside your isDragging() implementation. ' +
34 'Read more: http://react-dnd.github.io/react-dnd/docs-drag-source-monitor.html',
35 );
36
37 try {
38 isCallingIsDragging = true;
39 return this.internalMonitor.isDraggingSource(this.sourceId);
40 } finally {
41 isCallingIsDragging = false;
42 }
43 }
44
45 getItemType() {
46 return this.internalMonitor.getItemType();

Callers

nothing calls this directly

Calls 1

isDraggingSourceMethod · 0.80

Tested by

no test coverage detected