Skip to content

Commit 11fb115

Browse files
committed
Gate Server Component stack frame outside of DEV
1 parent 32f451b commit 11fb115

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: packages/react-server/src/ReactFizzComponentStack.js

+4-2
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)