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

Method isTargetId

packages/dnd-core/src/HandlerRegistry.js:131–134  ·  view source on GitHub ↗
(handlerId)

Source from the content-addressed store, hash-verified

129 }
130
131 isTargetId(handlerId) {
132 const role = parseRoleFromHandlerId(handlerId);
133 return role === HandlerRoles.TARGET;
134 }
135
136 removeSource(sourceId) {
137 invariant(this.getSource(sourceId), 'Expected an existing source.');

Callers 3

getTargetMethod · 0.95
getTargetTypeMethod · 0.95

Calls 1

parseRoleFromHandlerIdFunction · 0.85

Tested by

no test coverage detected