-
-
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
Native prop causes animation visually to fail, but the animated items are delayed from entry/removal as if animations were working #919
Comments
Please try with v9:
You won't need the |
Seems to resolve the issue. Thank you! |
@aleclarson - Upgrading to When a user scrolls down the list using their keyboard, the selected item, contained inside of an Do you have any ideas what might cause this? Some change in memoization? I tried |
Please try with the latest canary. 👍 You'll need a slight change to your usage of the If you can't figure it out, please provide a sandbox or git url. |
After reverting to Disregard below.Thanks @aleclarson The latest canary ( In <Transition
items={items}
from={{ opacity: 0 }}
enter={{ opacity: 1 }}
leave={{ opacity: 0 }}>
{(item, values=> ( // ITEM SEEMS TO BE FIRST? (Contains React child component)
<animated.div style={values}>{item}</animated.div>
)}
</Transition> Additionally, It seems like |
The Please provide a minimal CodeSandbox or git url that shows the issue. 👍 |
@aleclarson - can you point me to any documentation/example/discussion on how to use the latest version? I can create a repro if that doesn't elucidate my issue - but right now I don't even know how to use the new version. I can't imagine the
|
Works fine for me: https://codesandbox.io/s/react-spring-issue-919-1rvf9 |
Works fine for me too, with a closer test case to my own Finding: it doesn't seem that old items are removed properly? I noted your use of In Any ideas? Worked fine in |
Line 2210 has no reference to an |
@aleclarson - thank you so much for your responses today. I've reinstalled the package twice now, and cleared the folder out before installing the second time.
In "name": "@react-spring/core",
"version": "9.0.0-canary.808.17.55c5691", Everything seems to be in order as far as installation goes. Separately, do you have any thoughts on the sandbox I linked above failing to remove items from the list? Have I overlooked something there? Thank you again for your help @aleclarson. I really appreciate it. |
Okay, there's the issue! Very strange that the sandbox works at all.. 🤔 Some kind of Babel bug. Looks like Even more strange, the |
Let me know if there's anything I can do to assist! Oh also, if you have any thoughts on failure to remove old items in the sandbox. |
@aleclarson would you like me to repurpose this issue or create a new issue for this issue, or neither? |
I hoped upgrading from Is this something that's fixable by the maintainers of Any thoughts @aleclarson? |
🐛 Bug Report
Animations that work fine fail if passed
native
To Reproduce
Add
native
to an otherwise working<Transition />
- ReproExpected behavior
native
prop improves performance without causing animations to failLink to repro (highly encouraged)
https://codesandbox.io/s/jovial-darkness-cz1go
Environment
react-spring@8.0.28
react@16.12.0
The text was updated successfully, but these errors were encountered: