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

Method handleChange

packages/react-dnd/src/DragLayer.js:97–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 handleChange() {
98 if (!this.isCurrentlyMounted) {
99 return;
100 }
101
102 const nextState = this.getCurrentState();
103 if (!shallowEqual(nextState, this.state)) {
104 this.setState(nextState);
105 }
106 }
107
108 getCurrentState() {
109 const monitor = this.manager.getMonitor();

Callers 1

componentDidMountMethod · 0.95

Calls 2

getCurrentStateMethod · 0.95
shallowEqualFunction · 0.50

Tested by

no test coverage detected