Why am I getting back null return values from useSpring? #1316
Replies: 3 comments 5 replies
-
I am also working on this code. To further clarify, It is only happening in one place. Code is running on v9.0.0-rc3. |
Beta Was this translation helpful? Give feedback.
-
Same thing, I use UseSpring, I've migrated successfully to v9 from 8, |
Beta Was this translation helpful? Give feedback.
-
Sorry all, i've missed this. Would someone be able to provide a codesandbox and I can potentially look into this and offer some insight? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is my code:
current is [0,0] and [0,40] later. I also call the set function with values like [0,0] again. It returns valid values when [0,0] is passed, but [0,40] makes it return null values for some reason. I get a can not access x of undefined. Why would useSpring ever return null values? I don't see anything in the documentation saying that sometimes it may return null values. I would think if anything it would just return what I sent.
Beta Was this translation helpful? Give feedback.
All reactions