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

Method _start

packages/core/src/Interpolation.ts:87–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85 }
86
87 protected _start() {
88 if (this.idle && !checkIdle(this._active)) {
89 this.idle = false
90
91 each(getPayload(this)!, node => {
92 node.done = false
93 })
94
95 if (G.skipAnimation) {
96 raf.batchedUpdates(() => this.advance())
97 becomeIdle(this)
98 } else {
99 frameLoop.start(this)
100 }
101 }
102 }
103
104 // Observe our sources only when we're observed.
105 protected _attach() {

Callers 2

_attachMethod · 0.95
eventObservedMethod · 0.95

Calls 6

advanceMethod · 0.95
eachFunction · 0.90
getPayloadFunction · 0.90
checkIdleFunction · 0.85
becomeIdleFunction · 0.85
startMethod · 0.65

Tested by

no test coverage detected