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

Function reconnectDragSource

packages/react-dnd/src/createSourceConnector.js:15–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 let disconnectCurrentDragPreview;
14
15 function reconnectDragSource() {
16 if (disconnectCurrentDragSource) {
17 disconnectCurrentDragSource();
18 disconnectCurrentDragSource = null;
19 }
20
21 if (currentHandlerId && currentDragSourceNode) {
22 disconnectCurrentDragSource = backend.connectDragSource(
23 currentHandlerId,
24 currentDragSourceNode,
25 currentDragSourceOptions,
26 );
27 }
28 }
29
30 function reconnectDragPreview() {
31 if (disconnectCurrentDragPreview) {

Callers 2

receiveHandlerIdFunction · 0.85
createSourceConnectorFunction · 0.85

Calls 1

connectDragSourceMethod · 0.45

Tested by

no test coverage detected