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

Function addSource

packages/dnd-core/src/actions/registry.ts:8–15  ·  view source on GitHub ↗
(sourceId: string)

Source from the content-addressed store, hash-verified

6export const REMOVE_TARGET = 'dnd-core/REMOVE_TARGET'
7
8export function addSource(sourceId: string): Action<SourceIdPayload> {
9 return {
10 type: ADD_SOURCE,
11 payload: {
12 sourceId,
13 },
14 }
15}
16
17export function addTarget(targetId: string): Action<TargetIdPayload> {
18 return {

Callers 1

addSourceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…