-
Notifications
You must be signed in to change notification settings - Fork 50k
Support but warn on key={null} #2388
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
Conversation
src/core/ReactElement.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"...or undefined"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well we don't really want to encourage people to leave off keys… but I can say that. :)
Fixes facebook#2386. Test Plan: jest
|
spyOn doesn't allow you to revert back to the original if you want to start failing again but it's fine. |
|
Lots of other tests in the same file use spyOn… |
|
I guess spyOn doesn't callthrough by default so it should work. And I guess you can revert it. Just a sucky API. |
|
Unless they fail CI like this one... |
|
@sebmarkbage Transient failure – retried and it works. |
|
cool. mergeit |
Support but warn on key={null}
As long as the milestone is 0.12, yes. Then once we cut we can apply that rule to master as well. |
Fixes #2386.
Test Plan: jest
Reviewers: @sebmarkbage