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

Method scheduleUpdate

examples/04 Sortable/Stress Test/Container.js:58–64  ·  view source on GitHub ↗
(updateFn)

Source from the content-addressed store, hash-verified

56 }
57
58 scheduleUpdate(updateFn) {
59 this.pendingUpdateFn = updateFn;
60
61 if (!this.requestedFrame) {
62 this.requestedFrame = requestAnimationFrame(this.drawFrame);
63 }
64 }
65
66 drawFrame() {
67 const nextState = update(this.state, this.pendingUpdateFn);

Callers 1

moveCardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected