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

Method get

packages/core/src/Controller.ts:159–163  ·  view source on GitHub ↗

Get the current values of our springs

()

Source from the content-addressed store, hash-verified

157
158 /** Get the current values of our springs */
159 get(): State & UnknownProps {
160 const values: any = {}
161 this.each((spring, key) => (values[key] = spring.get()))
162 return values
163 }
164
165 /** Set the current values without animating. */
166 set(values: Partial<State>) {

Callers 1

_onFrameMethod · 0.95

Calls 2

eachMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected