-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
useTransition is not interpolating to correct final value #633
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
Comments
This might be fixed by #632. Can you give it a try with the git clone https://github.com/react-spring/react-spring.git --branch v9 --depth 1
cd ./react-spring
yarn
cd ./dist && yarn link
# In your repro directory:
yarn link react-spring |
linking to this branch causes a run time error: This is the repo: https://codesandbox.io/s/6z9kn5p1zw Stack trace:
|
That error often occurs when two React versions exist in the same bundle. To save you the trouble, I'll check this out today. 👍 |
This is fixed by #632 |
Thanks man! About the error above: I did go to |
You need to eject CRA and change some Webpack config to get it working. 😵 |
ahh right! |
You can use v9 like this now: |
🐛 Bug Report
The title is pretty much self explanatory. The final value is always off by a small margin.
Another interesting thing as pointed by @meesvandongen is triggering re-render makes it go to correct value.
To Reproduce
https://codesandbox.io/s/6z9kn5p1zw
Expected behavior
Interpolate to correct final value
Link to repro (highly encouraged)
https://codesandbox.io/s/6z9kn5p1zw
Environment
react-spring
v8.0.19react
v16.8.6The text was updated successfully, but these errors were encountered: