-
-
Notifications
You must be signed in to change notification settings - Fork 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
Missing key when using rc-animate #615
Comments
Hmm, that's quite odd, I can't think of a reason why React would be needing to set a key automatically. Maybe it defaults to numeric? |
What's also interesting is that, even if I manually a key it doesn' throw anymore but the animation is actually not happening anymore. |
Hey @dignifiedquire - this is fixed by @hassanbazzi's work in #629. Working to release 8.1.0 with that fix today. |
@developit great to hear thank you! I will try it out once its out asap |
Should be fixed in |
I am afraid the error persists with |
It seems fixed to me. Are you sure you upgraded? Can you provide the error? |
React sets keys to preserve order, i.e when conditionally rendering between |
Ah yeah, sounds like we were following a red herring. We'll need |
I run into yet another issue with the joys of libraries depending on reacts behaviour for how the children methods behave, so I started work implementing them here: preactjs/preact-compat#400 |
I encountered this issue while rendering select tags with "" as value and "None" as display properties. Please tell me, if there is a better work around. |
Let's track this in #3403 |
It seems there is some difference between React and Preact when using rc-animate. It seems similar to #155 but still appears in the latest version.
I have been using https://github.com/react-component/collapse without issues (following the simple example in the readme) with React, but when switching over to Preact I get the following error thrown
The key is not explicitly set here it seems: https://github.com/react-component/collapse/blob/master/src/Panel.jsx#L63 but I am guessing for single elements React sets the key automatically?
The text was updated successfully, but these errors were encountered: