How to make the spring work in an object? #14309
-
I want do this, but it doesn't work, no motion played. let a = {
x: spring(0)
} This is what i try: |
Beta Was this translation helpful? Give feedback.
Answered by
specialdoom
Nov 15, 2024
Replies: 1 comment 1 reply
-
You either destruct your object |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vhtmui
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You either destruct your object
let {x} = {x: spring(0)}
or subscribe to ita.x.subscribe(...)
. You are not able to doa.$x
.Here