New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: useState and api.start cause dom attributes not updated #2187
Comments
This is the original issue #2174 |
I will associate this comment with an issue, don't pay attention |
please assign it to me, I will start working on this issue. |
<animated.div By including count > 0 in the condition, the data-count attribute will only be set to "none" if both the animated value x is not 0 and either the goal value of the animation is not 0 or the count state is greater than 0. let me know is this was the issue or something else. |
This is just an example of the dom attribute not updating The essential problem is that the attributes are not updated Don't care about the role of none and auto, because this is my custom |
@Bilalshaikh15 someone work? |
@aleclarson @drcmda @joshuaellis |
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.1
What's Wrong?
When api.start and useState are executed together, the property on the dom that judges x to be 0 is not updated
To Reproduce
Here is my minimal rendition @joshuaellis
link: https://codesandbox.io/s/awesome-joana-t28gsz?file=/src/App.tsx
You can see that data-count is not updated correctly but x is already 0
Expected Behaviour
attributes update
Link to repo
https://codesandbox.io/s/awesome-joana-t28gsz?file=/src/App.tsx
The text was updated successfully, but these errors were encountered: