We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4cae95 commit 3ee11d4Copy full SHA for 3ee11d4
packages/react-server/src/ReactFlightServerConfigDebugNode.js
@@ -138,6 +138,9 @@ export function initAsyncDebugInfo(): void {
138
}
139
140
export function getCurrentAsyncSequence(): null | AsyncSequence {
141
+ if (!__DEV__ || !enableAsyncDebugInfo) {
142
+ return null;
143
+ }
144
const currentNode = pendingOperations.get(executionAsyncId());
145
if (currentNode === undefined) {
146
// Nothing that we tracked led to the resolution of this execution context.
0 commit comments