( initial: Exclude<T, object>, props?: SpringUpdate<T> )
| 23 | * @public |
| 24 | */ |
| 25 | export const useSpringValue = <T>( |
| 26 | initial: Exclude<T, object>, |
| 27 | props?: SpringUpdate<T> |
| 28 | ) => { |
| 29 | const springValue = useConstant(() => new SpringValue(initial, props)) |
| 30 | |
| 31 | useOnce(() => () => { |
| 32 | springValue.stop() |
| 33 | }) |
| 34 | |
| 35 | return springValue |
| 36 | } |
no test coverage detected
searching dependent graphs…