exactly like useMemo but interpolates computed values between renders using physics based animations
const [const count: number
count, const setCount: (value: Kaioken.StateSetter<number>) => void
setCount] = useState<number>(initial: number | (() => number)): readonly [number, (value: Kaioken.StateSetter<number>) => void]
useState(0)
const const springCount: SpringSignal<number>
springCount = useSpringMemo<number>(factory: () => number, deps: unknown[], opts?: Partial<SpringOpts>): SpringSignal<number>
useSpringMemo(() => const count: number
count, [const count: number
count])
interface SpringUpdateOpts {
hard?: any
soft?: string | number | boolean
}
interface SpringOpts extends SpringUpdateOpts {
stiffness: number
damping: number
precision: number
}