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

Add “Don't Call PropTypes” warning #7219

Merged
merged 1 commit into from
Jul 29, 2016
Merged

Add “Don't Call PropTypes” warning #7219

merged 1 commit into from
Jul 29, 2016

Conversation

gaearon
Copy link
Collaborator

@gaearon gaearon commented Jul 7, 2016

This warning was introduced in #7132.
This document should be available by https://fb.me/react-warning-dont-call-proptypes.

@gaearon gaearon added this to the 15-next milestone Jul 7, 2016
@zpao zpao removed this from the 15-next milestone Jul 7, 2016
var error = apiShape(json, 'response');
```

If you depend on using PropTypes like this, we encourage you to use or create a fork of PropTypes (such as [these](https://github.com/aackerman/PropTypes) [two](https://github.com/developit/proptypes) packages).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we'll ever ship our own standalone package? Should we mention that we might do that alongside the major version change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean we could delegate to that package normally but replace with throwing shims in prod?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we talked about potentially splitting the PropTypes out from the main package and shipping it as a standalone thing. But I guess that's tangential and not worth mentioning until/if we do it. Just ignore me.

@zpao
Copy link
Member

zpao commented Jul 7, 2016

Thanks for doing this! I filed #7220 as a reminder to actually create that short url when we ship. (note: I got rid of the tracking milestone because this is docs and we'll cherry-pick to stable separately)

@ghost ghost added the CLA Signed label Jul 12, 2016
@zpao
Copy link
Member

zpao commented Jul 29, 2016

Oops, meant to get this in before shipping 15.3.0… will land now.

@zpao zpao merged commit 8329856 into master Jul 29, 2016
zpao added a commit to zpao/react that referenced this pull request Jul 29, 2016
Followup to facebook#7219, which was created before the Jekyll 3 upgrade, which needs the permalink field.
zpao added a commit that referenced this pull request Jul 29, 2016
Followup to #7219, which was created before the Jekyll 3 upgrade, which needs the permalink field.
zpao pushed a commit that referenced this pull request Jul 29, 2016
zpao added a commit that referenced this pull request Jul 29, 2016
Followup to #7219, which was created before the Jekyll 3 upgrade, which needs the permalink field.
(cherry picked from commit 25aa5e3)
@gaearon gaearon deleted the gaearon-patch-1 branch July 29, 2016 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants