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

Make invalid prop type warnings more specific if they are falsy #11289 #3

Closed
NicBonetto opened this issue Oct 20, 2017 · 0 comments
Closed

Comments

@NicBonetto
Copy link
Owner

Make error more precise.

NicBonetto added a commit that referenced this issue Oct 20, 2017
NicBonetto added a commit that referenced this issue Oct 20, 2017
NicBonetto added a commit that referenced this issue Oct 20, 2017
NicBonetto added a commit that referenced this issue Oct 26, 2017
NicBonetto added a commit that referenced this issue Oct 26, 2017
NicBonetto added a commit that referenced this issue Oct 29, 2017
NicBonetto added a commit that referenced this issue Oct 29, 2017
NicBonetto added a commit that referenced this issue Oct 29, 2017
NicBonetto added a commit that referenced this issue Oct 29, 2017
NicBonetto added a commit that referenced this issue Mar 11, 2018
…11308)

* Modified tests and corrected error message. #3

* Fixed syntax issues. #3

* Modified test. #3

* Prettified. #3

* Changed warning message to handle true and false boolean values. #3

* Changed test to contain undefined instead of value. #3

* Simplified branch structure. #3

* Refactored branching logic. #3

* Refactored falsy warning message and tests. #3

* Changed condition to attribute name. #3

* Refactored falsy and truthy warning messages with tests updated. #3

* Added missing character. #3

* Fixed warning message. #3

* Cleared extra whitespace. #3

* Refactored warning messages to be clear. #3

* Prettified. #3

* Grammar fix

* Tweak unrelated warning

The message didn't make sense because it appears for *any* attributes, not just numeric ones.

* Tweak the message for more clarity

* Add a special message for false event handlers

* Add missing whitespace

* Revert size changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant