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

Method _attach

packages/core/src/SpringValue.ts:911–923  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

909 }
910
911 protected _attach() {
912 let priority = 0
913
914 const { to } = this.animation
915 if (hasFluidValue(to)) {
916 addFluidObserver(to, this)
917 if (isFrameValue(to)) {
918 priority = to.priority + 1
919 }
920 }
921
922 this.priority = priority
923 }
924
925 protected _detach() {
926 const { to } = this.animation

Callers 2

_focusMethod · 0.95
observerAddedFunction · 0.45

Calls 3

hasFluidValueFunction · 0.90
addFluidObserverFunction · 0.90
isFrameValueFunction · 0.90

Tested by

no test coverage detected