MCPcopy
hub / github.com/pmndrs/react-spring / step

Function step

packages/mock-raf/index.js:15–23  ·  view source on GitHub ↗
({ count = 1, time = 16.667 } = {})

Source from the content-addressed store, hash-verified

13 requests.delete(id)
14 },
15 step({ count = 1, time = 16.667 } = {}) {
16 for (let i = 0; i < count; i++) {
17 const current = Array.from(requests.values())
18 requests.clear()
19
20 now += time
21 current.forEach(callback => callback(now))
22 }
23 },
24 flush() {
25 while (requests.size) {
26 this.step()

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
forEachMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…