ReactFlightDOMClientNode.js — react Source File
Architecture documentation for ReactFlightDOMClientNode.js, a javascript file in the react codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f649fb5b_b835_535c_29ac_aee98a47555c["ReactFlightDOMClientNode.js"] 13f11621_9a5f_a5aa_48d4_e875ab9694f0["ReactTypes.js"] f649fb5b_b835_535c_29ac_aee98a47555c --> 13f11621_9a5f_a5aa_48d4_e875ab9694f0 afaa7551_ea57_93c2_7525_765a8d07bd4d["ReactFlightClient"] f649fb5b_b835_535c_29ac_aee98a47555c --> afaa7551_ea57_93c2_7525_765a8d07bd4d 84cea5a1_779b_9551_2f54_df77f0973a0f["stream"] f649fb5b_b835_535c_29ac_aee98a47555c --> 84cea5a1_779b_9551_2f54_df77f0973a0f d3ecb303_8475_b9f7_6403_916712dbd277["ReactFlightReplyClient"] f649fb5b_b835_535c_29ac_aee98a47555c --> d3ecb303_8475_b9f7_6403_916712dbd277 style f649fb5b_b835_535c_29ac_aee98a47555c 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 {Thenable, ReactCustomFormAction} from 'shared/ReactTypes.js';
import type {
DebugChannel,
FindSourceMapURLCallback,
Response,
} from 'react-client/src/ReactFlightClient';
import type {Readable} from 'stream';
import {
createResponse,
createStreamState,
getRoot,
reportGlobalError,
processStringChunk,
processBinaryChunk,
close,
} from 'react-client/src/ReactFlightClient';
import {createServerReference as createServerReferenceImpl} from 'react-client/src/ReactFlightReplyClient';
export {registerServerReference} from 'react-client/src/ReactFlightReplyClient';
function noServerCall() {
throw new Error(
'Server Functions cannot be called during initial render. ' +
'This would create a fetch waterfall. Try to use a Server Component ' +
'to pass data to Client Components instead.',
);
}
export function createServerReference<A: Iterable<any>, T>(
id: any,
callServer: any,
): (...A) => Promise<T> {
return createServerReferenceImpl(id, noServerCall);
}
type EncodeFormActionCallback = <A>(
id: any,
args: Promise<A>,
) => ReactCustomFormAction;
export type Options = {
nonce?: string,
encodeFormAction?: EncodeFormActionCallback,
unstable_allowPartialStream?: boolean,
findSourceMapURL?: FindSourceMapURLCallback,
replayConsoleLogs?: boolean,
environmentName?: string,
// ... (82 more lines)
Domain
Subdomains
Functions
Dependencies
- ReactFlightClient
- ReactFlightReplyClient
- ReactTypes.js
- stream
Source
Frequently Asked Questions
What does ReactFlightDOMClientNode.js do?
ReactFlightDOMClientNode.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 ReactFlightDOMClientNode.js?
ReactFlightDOMClientNode.js defines 2 function(s): handleEnd, noServerCall.
What does ReactFlightDOMClientNode.js depend on?
ReactFlightDOMClientNode.js imports 4 module(s): ReactFlightClient, ReactFlightReplyClient, ReactTypes.js, stream.
Where is ReactFlightDOMClientNode.js in the architecture?
ReactFlightDOMClientNode.js is located at packages/react-server-dom-esm/src/client/ReactFlightDOMClientNode.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server-dom-esm/src/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free