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

Function reconnectDragPreview

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

Source from the content-addressed store, hash-verified

28 }
29
30 function reconnectDragPreview() {
31 if (disconnectCurrentDragPreview) {
32 disconnectCurrentDragPreview();
33 disconnectCurrentDragPreview = null;
34 }
35
36 if (currentHandlerId && currentDragPreviewNode) {
37 disconnectCurrentDragPreview = backend.connectDragPreview(
38 currentHandlerId,
39 currentDragPreviewNode,
40 currentDragPreviewOptions,
41 );
42 }
43 }
44
45 function receiveHandlerId(handlerId) {
46 if (handlerId === currentHandlerId) {

Callers 2

receiveHandlerIdFunction · 0.85
createSourceConnectorFunction · 0.85

Calls 1

connectDragPreviewMethod · 0.45

Tested by

no test coverage detected