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

Function onStart

packages/core/src/scheduleProps.ts:86–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 function onStart() {
87 if (state.delayed) {
88 state.delayed = false
89 }
90
91 state.pauseQueue.delete(onPause)
92 state.timeouts.delete(timeout)
93
94 // Maybe cancelled during its delay.
95 if (callId <= (state.cancelId || 0)) {
96 cancel = true
97 }
98
99 try {
100 actions.start({ ...props, callId, cancel }, resolve)
101 } catch (err) {
102 reject(err)
103 }
104 }
105 })
106}

Callers 3

schedulePropsFunction · 0.85
onResumeFunction · 0.85
_onFrameMethod · 0.85

Calls 2

deleteMethod · 0.80
startMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…