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

Function _getProps

packages/core/src/SpringRef.ts:173–179  ·  view source on GitHub ↗
(
    arg: ControllerUpdate<State> | ControllerUpdateFn<State>,
    ctrl: Controller<State>,
    index: number
  )

Source from the content-addressed store, hash-verified

171
172 /** Overridden by `useTrail` to manipulate props */
173 const _getProps = function (
174 arg: ControllerUpdate<State> | ControllerUpdateFn<State>,
175 ctrl: Controller<State>,
176 index: number
177 ) {
178 return is.fun(arg) ? arg(index, ctrl) : arg
179 }
180
181 SpringRef._getProps = _getProps
182

Callers 1

SpringRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…