Skip to content

Commit 265eb73

Browse files
committed
Gate Server Component stack frame outside of DEV
1 parent 737fd63 commit 265eb73

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-server/src/ReactFizzComponentStack.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ export function getStackByComponentStackNode(
7373
info += describeClassComponentFrame(node.type);
7474
break;
7575
case 3:
76-
info += describeBuiltInComponentFrame(node.type);
77-
break;
76+
if (__DEV__) {
77+
info += describeBuiltInComponentFrame(node.type);
78+
break;
79+
}
7880
}
7981
// $FlowFixMe[incompatible-type] we bail out when we get a null
8082
node = node.parent;

0 commit comments

Comments
 (0)