-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
v9.0.0-rc.3 –– Questions and feedback #985
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Shared package has circular dependencies which may lead to unwanted effect in some cases.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@amadeus Just a few days ago, I released rafz and integrated it with v9. That library never caches the injected rAF impl, and |
Please open an issue for this (with a sandbox) when you get time. 👍 If you prefer not to share the code publicly, you can message me on our official Discord server. |
Could you open an issue for this request? You can copy-paste that comment as-is. 👍 |
Sandbox link: https://codesandbox.io/s/react-spring-v9-scrolltop-bug-lrz65?file=/src/App.js |
from @aleclarson on discord:
This fixes it, yes, thanks! 😄 (I guess on v8.0.27 the lib used to do that automatically.) To achieve my behavior of a initial scrollTop I have to do this now:
And then to set I can live with this... hovever I would still consider this a bug, and expect this expression to work as an equivalent, just like it does in
and this should be possible too:
It works with |
This comment has been minimized.
This comment has been minimized.
I notice velocity is working unexpectedly or at least differently in v9.0.0-rc3. compared to v8.0.27. Here is a sandbox with v8.0.27, where velocity works as expected. However, in this fork with v9.0.0-rc3, but the velocity has a stronger effect on the spring value. Both sandboxes have the same config: config: { velocity: 30 } and a spring value going from 0 to 1. Could this be a bug, or am I doing something silly 🤷♂️? |
@JoostKiens The |
@aleclarson ah i missed that, thanks! 🙏 |
Just gone from v8 to v9 and not sure if I've missed a step from the breaking changes docs as I just immediately get typescript errors. I tried to recreate the example in codesandbox but it worked fine: https://codesandbox.io/s/mystifying-shtern-egmqx Locally for the exact same setup I get this ts error:
I can only guess that I've missed something painfully obvious here... |
Can you put the fix for this issue (#1078) to npm in some way. As I see it was fixed 5 months ago and RC4 have a long way to go. |
Animated.div dont render in the Production Mode but it's OK in the Development. |
@RezaHeydarii This is a known issue and has already been fixed on source, so I'm sure once rc.4 drops this will be fixed. In the mean time, there is a hot fix that involves setting useEffect:true in the package.json of react-spring using a script while making a production build. The workaround is described here: #1078 (comment) That's what I use and it works. |
The NPM distribution of this package is not transpiled to ES5, so it will break projects that aren't looking for it that support older browsers, such as IE11. Any way this could be fixed? |
Since the |
|
Go here first: v9 docs
Please leave your questions and feedback about
v9.0.0-rc
in this thread.🐛 Bug reports deserve their own issue. Fork this sandbox to create a minimal repro.
npm install react-spring@9.0.0-rc.3 -E # or npm install react-spring@next -E
Last Updated: May 11, 2020
Try the UMD bundle:
https://cdn.jsdelivr.net/npm/@react-spring/web@9.0.0-rc.3/index.umd.min.js
Read the source:
https://github.com/react-spring/react-spring/tree/v9.0.0-rc.3
Have any suggestions to improve the docs?
Speak up here: #967
Want to write a blog post for the docs?
Speak up here: #973
The text was updated successfully, but these errors were encountered: