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

Method constructor

packages/dnd-core/src/HandlerRegistry.js:62–70  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

60
61export default class HandlerRegistry {
62 constructor(store) {
63 this.store = store;
64
65 this.types = {};
66 this.handlers = {};
67
68 this.pinnedSourceId = null;
69 this.pinnedSource = null;
70 }
71
72 addSource(type, source) {
73 validateType(type);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected