Skip to content

Commit

Permalink
added DEV condition around getDeclarationErrorAddendum contents
Browse files Browse the repository at this point in the history
  • Loading branch information
trueadm committed Mar 29, 2017
1 parent aaabd65 commit 6603069
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/renderers/dom/fiber/ReactDOMFiberComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ var {
var DOC_FRAGMENT_TYPE = 11;

function getDeclarationErrorAddendum() {
var ownerName = getCurrentFiberOwnerName();
if (ownerName) {
// TODO: also report the stack.
return '\n\nThis DOM node was rendered by `' + ownerName + '`.';
if (__DEV__) {
var ownerName = getCurrentFiberOwnerName();
if (ownerName) {
// TODO: also report the stack.
return '\n\nThis DOM node was rendered by `' + ownerName + '`.';
}
}
return '';
}
Expand Down

0 comments on commit 6603069

Please sign in to comment.