mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #9276 from trueadm/getDeclarationErrorAddendum_DEV
[Fiber] Adds DEV condition around getDeclarationErrorAddendum
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user