Skip to content
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

Allow data lists to include 0 or '' (falsey items) #15419

Closed
wants to merge 1 commit into from

Conversation

tomasreimers
Copy link
Contributor

Fixing #13578

(Write your motivation here.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Aug 9, 2017
@ide
Copy link
Contributor

ide commented Aug 9, 2017

false should be ok, isn't it null or undefined you're looking for?

@tomasreimers
Copy link
Contributor Author

To be quite honest, I'm not actually sure why this invariant exists. Was hoping for someone with more domain knowledge to chime in.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Sep 8, 2017
@facebook-github-bot
Copy link
Contributor

@tomasreimers has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@sahrens
Copy link
Contributor

sahrens commented Sep 12, 2017

Yeah actually we can probably just remove the invariant completely.

cosmith pushed a commit to dashdoc/react-native that referenced this pull request Jun 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants