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

Method removeTarget

packages/dnd-core/src/HandlerRegistry.js:146–154  ·  view source on GitHub ↗
(targetId)

Source from the content-addressed store, hash-verified

144 }
145
146 removeTarget(targetId) {
147 invariant(this.getTarget(targetId), 'Expected an existing target.');
148 this.store.dispatch(removeTarget(targetId));
149
150 asap(() => {
151 delete this.handlers[targetId];
152 delete this.types[targetId];
153 });
154 }
155
156 pinSource(sourceId) {
157 const source = this.getSource(sourceId);

Callers 3

unregisterTargetFunction · 0.80

Calls 2

getTargetMethod · 0.95
removeTargetFunction · 0.90

Tested by

no test coverage detected