ReactFlightServerConfigDebugNode.js — react Source File
Architecture documentation for ReactFlightServerConfigDebugNode.js, a javascript file in the react codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e13213e5_bbf2_d841_8c5b_fc4a5aece086["ReactFlightServerConfigDebugNode.js"] 7bd7722b_4393_af3e_4956_aebdb94eaca3["ReactFlightAsyncSequence.js"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> 7bd7722b_4393_af3e_4956_aebdb94eaca3 5e4cdebf_06be_91d3_9e4a_8fec8b4e5b2f["ReactFlightCurrentOwner.js"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> 5e4cdebf_06be_91d3_9e4a_8fec8b4e5b2f e143ec37_0522_ef26_bb9c_180891985523["ReactFlightServer.js"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> e143ec37_0522_ef26_bb9c_180891985523 a807d76d_59e7_1d25_ebaa_cd6e0e3cda55["ReactFlightServerConfig.js"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> a807d76d_59e7_1d25_ebaa_cd6e0e3cda55 d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07 3fda9c03_50ed_bdaf_eebd_08b8d317e20d["async_hooks"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> 3fda9c03_50ed_bdaf_eebd_08b8d317e20d 8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"] e13213e5_bbf2_d841_8c5b_fc4a5aece086 --> 8344de1b_978c_be0f_eebd_38ccc4962a93 style e13213e5_bbf2_d841_8c5b_fc4a5aece086 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactStackTrace} from 'shared/ReactTypes';
import type {
AsyncSequence,
IONode,
PromiseNode,
UnresolvedPromiseNode,
AwaitNode,
UnresolvedAwaitNode,
} from './ReactFlightAsyncSequence';
import {
IO_NODE,
PROMISE_NODE,
UNRESOLVED_PROMISE_NODE,
AWAIT_NODE,
UNRESOLVED_AWAIT_NODE,
} from './ReactFlightAsyncSequence';
import {resolveOwner} from './flight/ReactFlightCurrentOwner';
import {resolveRequest, isAwaitInUserspace} from './ReactFlightServer';
import {createHook, executionAsyncId, AsyncResource} from 'async_hooks';
import {enableAsyncDebugInfo} from 'shared/ReactFeatureFlags';
import {parseStackTracePrivate} from './ReactFlightServerConfig';
// $FlowFixMe[method-unbinding]
const getAsyncId = AsyncResource.prototype.asyncId;
const pendingOperations: Map<number, AsyncSequence> =
__DEV__ && enableAsyncDebugInfo ? new Map() : (null: any);
// Keep the last resolved await as a workaround for async functions missing data.
let lastRanAwait: null | AwaitNode = null;
function resolvePromiseOrAwaitNode(
unresolvedNode: UnresolvedAwaitNode | UnresolvedPromiseNode,
endTime: number,
): AwaitNode | PromiseNode {
const resolvedNode: AwaitNode | PromiseNode = (unresolvedNode: any);
resolvedNode.tag = ((unresolvedNode.tag === UNRESOLVED_PROMISE_NODE
? PROMISE_NODE
: AWAIT_NODE): any);
resolvedNode.end = endTime;
return resolvedNode;
}
const emptyStack: ReactStackTrace = [];
// Initialize the tracing of async operations.
// We do this globally since the async work can potentially eagerly
// start before the first request and once requests start they can interleave.
// In theory we could enable and disable using a ref count of active requests
// ... (329 more lines)
Domain
Subdomains
Dependencies
- ReactFeatureFlags
- ReactFlightAsyncSequence.js
- ReactFlightCurrentOwner.js
- ReactFlightServer.js
- ReactFlightServerConfig.js
- ReactTypes
- async_hooks
Source
Frequently Asked Questions
What does ReactFlightServerConfigDebugNode.js do?
ReactFlightServerConfigDebugNode.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain, Validation subdomain.
What functions are defined in ReactFlightServerConfigDebugNode.js?
ReactFlightServerConfigDebugNode.js defines 2 function(s): initAsyncDebugInfo, resolvePromiseOrAwaitNode.
What does ReactFlightServerConfigDebugNode.js depend on?
ReactFlightServerConfigDebugNode.js imports 7 module(s): ReactFeatureFlags, ReactFlightAsyncSequence.js, ReactFlightCurrentOwner.js, ReactFlightServer.js, ReactFlightServerConfig.js, ReactTypes, async_hooks.
Where is ReactFlightServerConfigDebugNode.js in the architecture?
ReactFlightServerConfigDebugNode.js is located at packages/react-server/src/ReactFlightServerConfigDebugNode.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free