ReactFlightWebpackReferences.js — react Source File
Architecture documentation for ReactFlightWebpackReferences.js, a javascript file in the react codebase. 1 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 4df02f35_5407_da69_f211_8ce32127320d["ReactFlightWebpackReferences.js"] 0cf33a2a_6fe6_7412_bf8d_09664538a80f["ReactFlightServer"] 4df02f35_5407_da69_f211_8ce32127320d --> 0cf33a2a_6fe6_7412_bf8d_09664538a80f 86be9700_4cd0_5399_1f70_90254d1235ad["ReactFlightServerConfigWebpackBundler.js"] 86be9700_4cd0_5399_1f70_90254d1235ad --> 4df02f35_5407_da69_f211_8ce32127320d style 4df02f35_5407_da69_f211_8ce32127320d 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 {ReactClientValue} from 'react-server/src/ReactFlightServer';
export type ServerReference<T: Function> = T & {
$$typeof: symbol,
$$id: string,
$$bound: null | Array<ReactClientValue>,
$$location?: Error,
};
// eslint-disable-next-line no-unused-vars
export type ClientReference<T> = {
$$typeof: symbol,
$$id: string,
$$async: boolean,
};
const CLIENT_REFERENCE_TAG = Symbol.for('react.client.reference');
const SERVER_REFERENCE_TAG = Symbol.for('react.server.reference');
export function isClientReference(reference: Object): boolean {
return reference.$$typeof === CLIENT_REFERENCE_TAG;
}
export function isServerReference(reference: Object): boolean {
return reference.$$typeof === SERVER_REFERENCE_TAG;
}
export function registerClientReference<T>(
proxyImplementation: any,
id: string,
exportName: string,
): ClientReference<T> {
return registerClientReferenceImpl(
proxyImplementation,
id + '#' + exportName,
false,
);
}
function registerClientReferenceImpl<T>(
proxyImplementation: any,
id: string,
async: boolean,
): ClientReference<T> {
return Object.defineProperties(proxyImplementation, {
$$typeof: {value: CLIENT_REFERENCE_TAG},
$$id: {value: id},
$$async: {value: async},
});
}
// ... (300 more lines)
Domain
Subdomains
Functions
Dependencies
- ReactFlightServer
Source
Frequently Asked Questions
What does ReactFlightWebpackReferences.js do?
ReactFlightWebpackReferences.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 ReactFlightWebpackReferences.js?
ReactFlightWebpackReferences.js defines 2 function(s): isClientReference, isServerReference.
What does ReactFlightWebpackReferences.js depend on?
ReactFlightWebpackReferences.js imports 1 module(s): ReactFlightServer.
What files import ReactFlightWebpackReferences.js?
ReactFlightWebpackReferences.js is imported by 1 file(s): ReactFlightServerConfigWebpackBundler.js.
Where is ReactFlightWebpackReferences.js in the architecture?
ReactFlightWebpackReferences.js is located at packages/react-server-dom-webpack/src/ReactFlightWebpackReferences.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server-dom-webpack/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free