How to correctly update animation values and node based on props? #1754
Unanswered
nikitatsvirko-kandasoft
asked this question in
Q&A
Replies: 1 comment 2 replies
-
useEffect(() => {
set(translationY, add(translationY, multiply(divide(sliderHeight, 100), sub(callBackValue, initialValue))));
}, [ initialValue ]); set is meant to be used in the chain of the nodes attached to the styles or events. You can try using |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am creating Vertical Slider component, which allows user to drag 'toggle' and change 'value'.
I can say that it works perfectly, excepts one thing. I can't correctly pass an initial value to this component from props.
The slider is initialised with the 'initialValue' props, but then it's behaviour became too strange.
There is my code:
Beta Was this translation helpful? Give feedback.
All reactions