MCPcopy
hub / github.com/hello-pangea/dnd / getDraggableById

Function getDraggableById

src/state/registry/create-registry.ts:54–58  ·  view source on GitHub ↗
(id: DraggableId)

Source from the content-addressed store, hash-verified

52 }
53
54 function getDraggableById(id: DraggableId): DraggableEntry {
55 const entry: DraggableEntry | null = findDraggableById(id);
56 invariant(entry, `Cannot find draggable entry with id [${id}]`);
57 return entry;
58 }
59
60 const draggableAPI: DraggableAPI = {
61 register: (entry: DraggableEntry) => {

Callers

nothing calls this directly

Calls 2

invariantFunction · 0.90
findDraggableByIdFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…