Home / File/ ReactFlightServerConfigDOM.js — react Source File

ReactFlightServerConfigDOM.js — react Source File

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

File javascript BabelCompiler Validation 4 imports 1 dependents 5 functions

Entity Profile

Dependency Diagram

graph LR
  6a345571_3d83_3185_49d0_7a711dbada16["ReactFlightServerConfigDOM.js"]
  94bae2d3_1638_7f92_53cf_c5dda5fdbb31["ReactDOMFlightServerHostDispatcher.js"]
  6a345571_3d83_3185_49d0_7a711dbada16 --> 94bae2d3_1638_7f92_53cf_c5dda5fdbb31
  32da47fd_dac0_1961_6ca0_aaebfed0f91b["crossOriginStrings.js"]
  6a345571_3d83_3185_49d0_7a711dbada16 --> 32da47fd_dac0_1961_6ca0_aaebfed0f91b
  d6d80e8f_983f_103d_5ad4_f6a8867e4516["getCrossOriginString"]
  6a345571_3d83_3185_49d0_7a711dbada16 --> d6d80e8f_983f_103d_5ad4_f6a8867e4516
  e4b62e66_957f_addb_575b_78b1e837514f["ReactDOMTypes"]
  6a345571_3d83_3185_49d0_7a711dbada16 --> e4b62e66_957f_addb_575b_78b1e837514f
  63f0749f_297f_769a_3a54_a5a0d0221571["ReactFlightClientConfigDOM.js"]
  63f0749f_297f_769a_3a54_a5a0d0221571 --> 6a345571_3d83_3185_49d0_7a711dbada16
  style 6a345571_3d83_3185_49d0_7a711dbada16 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 {
  CrossOriginEnum,
  PreloadImplOptions,
  PreloadModuleImplOptions,
  PreinitStyleOptions,
  PreinitScriptOptions,
  PreinitModuleScriptOptions,
} from 'react-dom/src/shared/ReactDOMTypes';

// This module registers the host dispatcher so it needs to be imported
// even if no exports are used.
import {preload, preloadModule} from './ReactDOMFlightServerHostDispatcher';

import {getCrossOriginString} from '../shared/crossOriginStrings';

// We use zero to represent the absence of an explicit precedence because it is
// small, smaller than how we encode undefined, and is unambiguous. We could use
// a different tuple structure to encode this instead but this makes the runtime
// cost cheaper by eliminating a type checks in more positions.
type UnspecifiedPrecedence = 0;

// prettier-ignore
type TypeMap = {
  // prefetchDNS(href)
  'D': /* href */ string,
  // preconnect(href, options)
  'C':
    | /* href */ string
    | [/* href */ string, CrossOriginEnum],
  // preconnect(href, options)
  'L':
    | [/* href */ string, /* as */ string]
    | [/* href */ string, /* as */ string, PreloadImplOptions],
  'm':
    | /* href */ string
    | [/* href */ string, PreloadModuleImplOptions],
  'S':
    | /* href */ string
    | [/* href */ string, /* precedence */ string]
    | [/* href */ string, /* precedence */ string | UnspecifiedPrecedence, PreinitStyleOptions],
  'X':
    | /* href */ string
    | [/* href */ string, PreinitScriptOptions],
  'M':
    | /* href */ string
    | [/* href */ string, PreinitModuleScriptOptions],
}

export type HintCode = $Keys<TypeMap>;
export type HintModel<T: HintCode> = TypeMap[T];

// ... (146 more lines)

Domain

Subdomains

Frequently Asked Questions

What does ReactFlightServerConfigDOM.js do?
ReactFlightServerConfigDOM.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 ReactFlightServerConfigDOM.js?
ReactFlightServerConfigDOM.js defines 5 function(s): createHints, createRootFormatContext, getChildFormatContext, processImg, processLink.
What does ReactFlightServerConfigDOM.js depend on?
ReactFlightServerConfigDOM.js imports 4 module(s): ReactDOMFlightServerHostDispatcher.js, ReactDOMTypes, crossOriginStrings.js, getCrossOriginString.
What files import ReactFlightServerConfigDOM.js?
ReactFlightServerConfigDOM.js is imported by 1 file(s): ReactFlightClientConfigDOM.js.
Where is ReactFlightServerConfigDOM.js in the architecture?
ReactFlightServerConfigDOM.js is located at packages/react-dom-bindings/src/server/ReactFlightServerConfigDOM.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-dom-bindings/src/server).

Analyze Your Own Codebase

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

Try Supermodel Free