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

Method set

packages/core/src/Controller.ts:166–173  ·  view source on GitHub ↗

Set the current values without animating.

(values: Partial<State>)

Source from the content-addressed store, hash-verified

164
165 /** Set the current values without animating. */
166 set(values: Partial<State>) {
167 for (const key in values) {
168 const value = values[key]
169 if (!is.und(value)) {
170 this.springs[key].set(value)
171 }
172 }
173 }
174
175 /** Push an update onto the queue of each value. */
176 update(props: ControllerUpdate<State> | Falsy) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected