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

Method eventObserved

packages/core/src/SpringValue.ts:514–520  ·  view source on GitHub ↗

@internal

(event: FrameValue.Event)

Source from the content-addressed store, hash-verified

512
513 /** @internal */
514 eventObserved(event: FrameValue.Event) {
515 if (event.type == 'change') {
516 this._start()
517 } else if (event.type == 'priority') {
518 this.priority = event.priority + 1
519 }
520 }
521
522 /**
523 * Parse the `to` and `from` range from the given `props` object.

Callers

nothing calls this directly

Calls 1

_startMethod · 0.95

Tested by

no test coverage detected