-
Notifications
You must be signed in to change notification settings - Fork 47.6k
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
Clarify note about stable keys #5403
Conversation
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
I think the whole point of that sentence is to provide an example of unstable keys. It is explicitly calling out something that newbies sometimes try, and saying DON'T DO THIS. I don't think removing that parenthetical solves the problem. If you really believe it should be more explicit, maybe we could say:
|
@jimfb oh, I see. Did not get it from the the first time. Thanks for clarification |
I agree it doesn't read super well. Perhaps pulling the example out of the sentence.
|
How about that? |
Yeah, it's worse than just "bad performance" because you also loose internal state of all the decedents. Someone might be like "whatever, that's fine, performance is not an issue here" but then their code is actually wrong from a correctness perspective. Having said that, it's fine with me, subject to @zpao's go ahead. Maybe:
|
I like that 👍 @jimfb |
I like it, thanks @yaycmyk. Let's not use the word "node" though since it already has meaning in the DOM and React and neither of those is what you really mean here. All the terminology is confusing though… maybe just "component"? It's mostly correct since we use that to talk about instances. Or do whatever, this is definitely better regardless. |
Element? The key could be on a virtual |
@yaycmyk Technically it is a component (just a trivially simple one). I'm fine with "component" or "node". Element probably isn't what we want ( |
Fair enough @jimfb. From a dev perspective I'd lean toward "nodes", as that reads more general and all-encompassing. When I hear the word "component", my first instinct is one that I've intentionally made via |
Yeah, that's why I'm fine with either one. Node is often used a little more loosely, but component is technically a little more accurate. |
I do not remember signing on to any Contributor License Agreement In Facebook. I would appreciate it very much if you can provide me with details as to when did the signing up happen, IP address and what device was used to sign up. Please enlighten me about this activity because I seriously think someone else, without my permission is doing this. Thank you.Deo Larrijie O. GlovasaVirtual Administrative AssistantVirtual Dating Assistants (ViDA)+639281242567+1 (312) 789-4423---- On Thu, 05 Nov 2015 07:49:54 -0600 Facebook Community Botnotifications@github.com wrote ----Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!—Reply to this email directly or view it on GitHub. |
@TechyHouseWife557 the post by that bot is directed at the author of the pull request, which is not you. I admit that isn't completely clear, perhaps we should include the author's GitHub username. |
Ping @yaycmyk: Do you want to update this PR so we can merge? |
@jimfb not my PR, but I'm happy to make a separate one with the revised text |
@jimfb sure. I will do it later today. |
@yuyokk updated the pull request. |
@yuyokk Looks good. Can you squash the two commits into a single commit (I use |
@jimfb should be good now. Thanks! |
Clarify note about stable keys (cherry picked from commit d6a547f)
Hello,
I've been reading docs that say
and then I see this comment on some issue that says
Please let me know if it makes sense to remove this piece of doc from the site.
Thank you