-
Notifications
You must be signed in to change notification settings - Fork 25k
Change TextInput prop check to print instead of throw #8757
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
|
By analyzing the blame information on this pull request, we identified @JoelMarcey and @Bhullnatik to be potential reviewers. |
| for (var propKey in onlyMultiline) { | ||
| if (props[propKey]) { | ||
| throw new Error( | ||
| console.error(new Error( |
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.
Use the same warning method that React uses:
warning(false, '%s', error.stack);|
Thanks for following up! |
- the goal is to have the same failure mode in prod and dev. See conv in facebook#8499
534d6ce to
11f0412
Compare
|
@ide Ok, I've updated it! |
|
@facebook-github-bot shipit |
|
Thanks for importing. If you are an FB employee go to Phabricator to review. |
Summary: Follow up of facebook#8499! Open to discussion Motivation: See facebook#8499 (comment) Goal is to have the same failure mode in dev and prod. /cc ide Closes facebook#8757 Differential Revision: D3558991 fbshipit-source-id: c7d133f958e67ab23da486b1ffcb8f9963509b79
Summary: Follow up of facebook#8499! Open to discussion Motivation: See facebook#8499 (comment) Goal is to have the same failure mode in dev and prod. /cc ide Closes facebook#8757 Differential Revision: D3558991 fbshipit-source-id: c7d133f958e67ab23da486b1ffcb8f9963509b79
Summary: Follow up of facebook/react-native#8499! Open to discussion Motivation: See facebook/react-native#8499 (comment) Goal is to have the same failure mode in dev and prod. /cc ide Closes facebook/react-native#8757 Differential Revision: D3558991 fbshipit-source-id: c7d133f958e67ab23da486b1ffcb8f9963509b79
Follow up of #8499! Open to discussion
Motivation:
See #8499 (comment)
Goal is to have the same failure mode in dev and prod.
/cc @ide