Replies: 1 comment 4 replies
-
Hi, It'd be great to understand your use case for this? Maybe a minimal code example would help too? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🤓 Question
Hey, I'm having trouble getting the current value of a SpringValue. So far, this has worked well enough:
However, it needs a couple renders for the SpringValue to even be populated with its target, which means this doesn't exactly work. Here's a screenshot with the SpringValue before and after it has a target
As you can see, the top one has no
to
- or to be more accurate theto
isundefined
- I have checked and it does in fact exist whenuseSpring
is called - the SpringValue is just populated late. This is causing my application to break briefly as you can see by the error messages.Is there any way to reliably get the value of a spring? Currently the
animated
HOC does not work for my purposes, especially since refs aren't supportedBeta Was this translation helpful? Give feedback.
All reactions