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

Method reset

packages/animated/src/AnimatedString.ts:43–51  ·  view source on GitHub ↗
(goal?: string)

Source from the content-addressed store, hash-verified

41 }
42
43 reset(goal?: string) {
44 if (goal) {
45 this._toString = createInterpolator({
46 output: [this.getValue(), goal],
47 })
48 }
49 this._value = 0
50 super.reset()
51 }
52}

Callers

nothing calls this directly

Calls 2

getValueMethod · 0.95
createInterpolatorFunction · 0.90

Tested by

no test coverage detected