-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Enable null return values in plain functions #5884
Merged
jimfb
merged 1 commit into
facebook:master
from
jimfb:component-extends-react-component
Jan 29, 2016
Merged
Enable null return values in plain functions #5884
jimfb
merged 1 commit into
facebook:master
from
jimfb:component-extends-react-component
Jan 29, 2016
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jimfb
force-pushed
the
component-extends-react-component
branch
from
January 19, 2016 21:42
d8ef46a
to
d32aee5
Compare
|
||
it('should allow simple functions to return false', function() { | ||
function Child() { | ||
return null; |
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.
false
jimfb
force-pushed
the
component-extends-react-component
branch
from
January 20, 2016 22:11
d32aee5
to
757756f
Compare
@jimfb updated the pull request. |
🙌 |
Ping @sebmarkbage @spicyj |
I thought I reviewed this already. 👍 |
jimfb
added a commit
that referenced
this pull request
Jan 29, 2016
Enable null return values in plain functions
Merged
👍 |
afc163
added a commit
to react-component/table
that referenced
this pull request
Aug 2, 2016
gaearon
added a commit
to gaearon/react
that referenced
this pull request
Dec 28, 2016
This test is identical to "should warn when stateless component returns array" earlier. It was moved from another file in facebook#5884 so it likely survived by accident.
gaearon
added a commit
to gaearon/react
that referenced
this pull request
Dec 28, 2016
We have an invariant that checks the same case right afterwards. The warning was originally added in facebook#5884 with a distinct wording. However it was later changed to the same wording as the invariant in facebook#6008. I don't see why we would want to have both since they're saying the same thing and with (almost) the same internal stack.
acdlite
pushed a commit
to acdlite/react
that referenced
this pull request
Jan 12, 2017
This test is identical to "should warn when stateless component returns array" earlier. It was moved from another file in facebook#5884 so it likely survived by accident.
acdlite
pushed a commit
to acdlite/react
that referenced
this pull request
Jan 12, 2017
We have an invariant that checks the same case right afterwards. The warning was originally added in facebook#5884 with a distinct wording. However it was later changed to the same wording as the invariant in facebook#6008. I don't see why we would want to have both since they're saying the same thing and with (almost) the same internal stack.
10 tasks
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable null return values in plain functions by removing support for inheritless classes, as per #5355.