Home / File/ ReactFlightDOMClientNode.js — react Source File

ReactFlightDOMClientNode.js — react Source File

Architecture documentation for ReactFlightDOMClientNode.js, a javascript file in the react codebase. 4 imports, 0 dependents.

File javascript BabelCompiler Validation 4 imports 2 functions

Entity Profile

Dependency Diagram

graph LR
  754b1d7a_2816_c9c0_fc85_bf8336c6d461["ReactFlightDOMClientNode.js"]
  13f11621_9a5f_a5aa_48d4_e875ab9694f0["ReactTypes.js"]
  754b1d7a_2816_c9c0_fc85_bf8336c6d461 --> 13f11621_9a5f_a5aa_48d4_e875ab9694f0
  afaa7551_ea57_93c2_7525_765a8d07bd4d["ReactFlightClient"]
  754b1d7a_2816_c9c0_fc85_bf8336c6d461 --> afaa7551_ea57_93c2_7525_765a8d07bd4d
  d760bfed_8ff4_8e36_bbe8_dd60e8ce6809["ReactFlightClientConfig"]
  754b1d7a_2816_c9c0_fc85_bf8336c6d461 --> d760bfed_8ff4_8e36_bbe8_dd60e8ce6809
  84cea5a1_779b_9551_2f54_df77f0973a0f["stream"]
  754b1d7a_2816_c9c0_fc85_bf8336c6d461 --> 84cea5a1_779b_9551_2f54_df77f0973a0f
  style 754b1d7a_2816_c9c0_fc85_bf8336c6d461 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 {
  ServerConsumerModuleMap,
  ModuleLoading,
  ServerManifest,
} from 'react-client/src/ReactFlightClientConfig';

type ServerConsumerManifest = {
  moduleMap: ServerConsumerModuleMap,
  moduleLoading: ModuleLoading,
  serverModuleMap: null | ServerManifest,
};

import type {Readable} from 'stream';

import {
  createResponse,
  createStreamState,
  getRoot,
  reportGlobalError,
  processStringChunk,
  processBinaryChunk,
  close,
} from 'react-client/src/ReactFlightClient';

export * from './ReactFlightDOMClientEdge';

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.',
  );
}

type EncodeFormActionCallback = <A>(
  id: any,
  args: Promise<A>,
) => ReactCustomFormAction;

export type Options = {
  nonce?: string,
  encodeFormAction?: EncodeFormActionCallback,
  unstable_allowPartialStream?: boolean,
// ... (84 more lines)

Domain

Subdomains

Dependencies

  • ReactFlightClient
  • ReactFlightClientConfig
  • ReactTypes.js
  • stream

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, ReactFlightClientConfig, ReactTypes.js, stream.
Where is ReactFlightDOMClientNode.js in the architecture?
ReactFlightDOMClientNode.js is located at packages/react-server-dom-turbopack/src/client/ReactFlightDOMClientNode.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server-dom-turbopack/src/client).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free