Home / File/ ReactFlightDOMClientNode.js — react Source File

ReactFlightDOMClientNode.js — react Source File

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

File javascript BabelCompiler Validation 3 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  5de61b0e_4fec_b81a_51fb_9288569929db["ReactFlightDOMClientNode.js"]
  13f11621_9a5f_a5aa_48d4_e875ab9694f0["ReactTypes.js"]
  5de61b0e_4fec_b81a_51fb_9288569929db --> 13f11621_9a5f_a5aa_48d4_e875ab9694f0
  afaa7551_ea57_93c2_7525_765a8d07bd4d["ReactFlightClient"]
  5de61b0e_4fec_b81a_51fb_9288569929db --> afaa7551_ea57_93c2_7525_765a8d07bd4d
  84cea5a1_779b_9551_2f54_df77f0973a0f["stream"]
  5de61b0e_4fec_b81a_51fb_9288569929db --> 84cea5a1_779b_9551_2f54_df77f0973a0f
  style 5de61b0e_4fec_b81a_51fb_9288569929db 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, Response} from 'react-client/src/ReactFlightClient';
import type {Readable} from 'stream';

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

export * from './ReactFlightDOMClientEdge';

function findSourceMapURL(filename: string, environmentName: string) {
  const devServer = parcelRequire.meta.devServer;
  if (devServer != null) {
    const qs = new URLSearchParams();
    qs.set('filename', filename);
    qs.set('env', environmentName);
    return devServer + '/__parcel_source_map?' + qs.toString();
  }
  return null;
}

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,
  replayConsoleLogs?: boolean,
  environmentName?: string,
  startTime?: number,
  endTime?: number,
  // For the Node.js client we only support a single-direction debug channel.
  debugChannel?: Readable,
};
// ... (71 more lines)

Domain

Subdomains

Dependencies

  • ReactFlightClient
  • 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 3 function(s): findSourceMapURL, handleEnd, noServerCall.
What does ReactFlightDOMClientNode.js depend on?
ReactFlightDOMClientNode.js imports 3 module(s): ReactFlightClient, ReactTypes.js, stream.
Where is ReactFlightDOMClientNode.js in the architecture?
ReactFlightDOMClientNode.js is located at packages/react-server-dom-parcel/src/client/ReactFlightDOMClientNode.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server-dom-parcel/src/client).

Analyze Your Own Codebase

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

Try Supermodel Free