Skip to content

Commit 3ee11d4

Browse files
committed
Gate on the flag
1 parent a4cae95 commit 3ee11d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/react-server/src/ReactFlightServerConfigDebugNode.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ export function initAsyncDebugInfo(): void {
138138
}
139139

140140
export function getCurrentAsyncSequence(): null | AsyncSequence {
141+
if (!__DEV__ || !enableAsyncDebugInfo) {
142+
return null;
143+
}
141144
const currentNode = pendingOperations.get(executionAsyncId());
142145
if (currentNode === undefined) {
143146
// Nothing that we tracked led to the resolution of this execution context.

0 commit comments

Comments
 (0)