Home / File/ ReactFlightDOMClientEdge.js — react Source File

ReactFlightDOMClientEdge.js — react Source File

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

File javascript 4 imports

Entity Profile

Dependency Diagram

graph LR
  2690bea3_308d_108c_752b_7234668e3125["ReactFlightDOMClientEdge.js"]
  13f11621_9a5f_a5aa_48d4_e875ab9694f0["ReactTypes.js"]
  2690bea3_308d_108c_752b_7234668e3125 --> 13f11621_9a5f_a5aa_48d4_e875ab9694f0
  afaa7551_ea57_93c2_7525_765a8d07bd4d["ReactFlightClient"]
  2690bea3_308d_108c_752b_7234668e3125 --> afaa7551_ea57_93c2_7525_765a8d07bd4d
  d3ecb303_8475_b9f7_6403_916712dbd277["ReactFlightReplyClient"]
  2690bea3_308d_108c_752b_7234668e3125 --> d3ecb303_8475_b9f7_6403_916712dbd277
  2c80e6ff_e6bd_894a_8397_dc763826c5db["ReactFlightTemporaryReferences"]
  2690bea3_308d_108c_752b_7234668e3125 --> 2c80e6ff_e6bd_894a_8397_dc763826c5db
  style 2690bea3_308d_108c_752b_7234668e3125 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 as FlightResponse,
} from 'react-client/src/ReactFlightClient';
import type {ReactServerValue} from 'react-client/src/ReactFlightReplyClient';

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

import {
  processReply,
  createServerReference as createServerReferenceImpl,
} from 'react-client/src/ReactFlightReplyClient';

export {registerServerReference} from 'react-client/src/ReactFlightReplyClient';

import type {TemporaryReferenceSet} from 'react-client/src/ReactFlightTemporaryReferences';

export {createTemporaryReferenceSet} from 'react-client/src/ReactFlightTemporaryReferences';
export type {TemporaryReferenceSet};

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

export function createServerReference<A: Iterable<any>, T>(
  id: string,
  exportName: string,
// ... (196 more lines)

Dependencies

  • ReactFlightClient
  • ReactFlightReplyClient
  • ReactFlightTemporaryReferences
  • ReactTypes.js

Frequently Asked Questions

What does ReactFlightDOMClientEdge.js do?
ReactFlightDOMClientEdge.js is a source file in the react codebase, written in javascript.
What does ReactFlightDOMClientEdge.js depend on?
ReactFlightDOMClientEdge.js imports 4 module(s): ReactFlightClient, ReactFlightReplyClient, ReactFlightTemporaryReferences, ReactTypes.js.
Where is ReactFlightDOMClientEdge.js in the architecture?
ReactFlightDOMClientEdge.js is located at packages/react-server-dom-parcel/src/client/ReactFlightDOMClientEdge.js (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