Home / File/ ReactFlightClientConfig.markup.js — react Source File

ReactFlightClientConfig.markup.js — react Source File

Architecture documentation for ReactFlightClientConfig.markup.js, a javascript file in the react codebase. 1 imports, 0 dependents.

File javascript BabelCompiler Validation 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  c06d784e_1388_dcb5_eeaf_f3863c903bc9["ReactFlightClientConfig.markup.js"]
  d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"]
  c06d784e_1388_dcb5_eeaf_f3863c903bc9 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07
  style c06d784e_1388_dcb5_eeaf_f3863c903bc9 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
 */

export {default as rendererVersion} from 'shared/ReactVersion';
export const rendererPackageName = 'react-markup';

import type {Thenable} from 'shared/ReactTypes';

export * from 'react-markup/src/ReactMarkupLegacyClientStreamConfig.js';
export * from 'react-client/src/ReactClientConsoleConfigPlain';
export * from 'react-client/src/ReactClientDebugConfigPlain';

export type ModuleLoading = null;
export type ServerConsumerModuleMap = null;
export opaque type ServerManifest = null;
export type ServerReferenceId = string;
export opaque type ClientReferenceMetadata = null;
export opaque type ClientReference<T> = null; // eslint-disable-line no-unused-vars

export function prepareDestinationForModule(
  moduleLoading: ModuleLoading,
  nonce: ?string,
  metadata: ClientReferenceMetadata,
) {
  throw new Error(
    'renderToHTML should not have emitted Client References. This is a bug in React.',
  );
}

export function resolveClientReference<T>(
  bundlerConfig: ServerConsumerModuleMap,
  metadata: ClientReferenceMetadata,
): ClientReference<T> {
  throw new Error(
    'renderToHTML should not have emitted Client References. This is a bug in React.',
  );
}

export function resolveServerReference<T>(
  config: ServerManifest,
  id: ServerReferenceId,
): ClientReference<T> {
  throw new Error(
    'renderToHTML should not have emitted Server References. This is a bug in React.',
  );
}

export function preloadModule<T>(
  metadata: ClientReference<T>,
): null | Thenable<T> {
  return null;
}

export function requireModule<T>(metadata: ClientReference<T>): T {
  throw new Error(
    'renderToHTML should not have emitted Client References. This is a bug in React.',
  );
}

export function getModuleDebugInfo<T>(metadata: ClientReference<T>): null {
  throw new Error(
    'renderToHTML should not have emitted Client References. This is a bug in React.',
  );
}

export const usedWithSSR = true;

type HintCode = string;
type HintModel<T: HintCode> = null; // eslint-disable-line no-unused-vars

export function dispatchHint<Code: HintCode>(
  code: Code,
  model: HintModel<Code>,
): void {
  // Should never happen.
}

export function preinitModuleForSSR(
  href: string,
  nonce: ?string,
  crossOrigin: ?string,
) {
  // Should never happen.
}

export function preinitScriptForSSR(
  href: string,
  nonce: ?string,
  crossOrigin: ?string,
) {
  // Should never happen.
}

Domain

Subdomains

Dependencies

  • ReactTypes

Frequently Asked Questions

What does ReactFlightClientConfig.markup.js do?
ReactFlightClientConfig.markup.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 ReactFlightClientConfig.markup.js?
ReactFlightClientConfig.markup.js defines 1 function(s): prepareDestinationForModule.
What does ReactFlightClientConfig.markup.js depend on?
ReactFlightClientConfig.markup.js imports 1 module(s): ReactTypes.
Where is ReactFlightClientConfig.markup.js in the architecture?
ReactFlightClientConfig.markup.js is located at packages/react-client/src/forks/ReactFlightClientConfig.markup.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-client/src/forks).

Analyze Your Own Codebase

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

Try Supermodel Free