ReactFlightActionServer.js — react Source File
Architecture documentation for ReactFlightActionServer.js, a javascript file in the react codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 483ace45_0de6_a570_3113_a4bbee498ac8["ReactFlightActionServer.js"] 99eaa032_70fb_6638_05e7_4d3f46e29df3["ReactFlightReplyServer.js"] 483ace45_0de6_a570_3113_a4bbee498ac8 --> 99eaa032_70fb_6638_05e7_4d3f46e29df3 d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"] 483ace45_0de6_a570_3113_a4bbee498ac8 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07 d760bfed_8ff4_8e36_bbe8_dd60e8ce6809["ReactFlightClientConfig"] 483ace45_0de6_a570_3113_a4bbee498ac8 --> d760bfed_8ff4_8e36_bbe8_dd60e8ce6809 style 483ace45_0de6_a570_3113_a4bbee498ac8 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 {ReactFormState} from 'shared/ReactTypes';
import type {
ServerManifest,
ClientReference as ServerReference,
} from 'react-client/src/ReactFlightClientConfig';
import {
resolveServerReference,
preloadModule,
requireModule,
} from 'react-client/src/ReactFlightClientConfig';
import {
createResponse,
close,
getRoot,
MAX_BOUND_ARGS,
} from './ReactFlightReplyServer';
type ServerReferenceId = any;
function bindArgs(fn: any, args: any) {
if (args.length > MAX_BOUND_ARGS) {
throw new Error(
'Server Function has too many bound arguments. Received ' +
args.length +
' but the limit is ' +
MAX_BOUND_ARGS +
'.',
);
}
return fn.bind.apply(fn, [null].concat(args));
}
function loadServerReference<T>(
bundlerConfig: ServerManifest,
metaData: {
id: ServerReferenceId,
bound: null | Promise<Array<any>>,
},
): Promise<T> {
const id: ServerReferenceId = metaData.id;
if (typeof id !== 'string') {
return (null: any);
}
const serverReference: ServerReference<T> =
resolveServerReference<$FlowFixMe>(bundlerConfig, id);
// We expect most servers to not really need this because you'd just have all
// the relevant modules already loaded but it allows for lazy loading of code
// ... (150 more lines)
Domain
Subdomains
Functions
Dependencies
- ReactFlightClientConfig
- ReactFlightReplyServer.js
- ReactTypes
Source
Frequently Asked Questions
What does ReactFlightActionServer.js do?
ReactFlightActionServer.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 ReactFlightActionServer.js?
ReactFlightActionServer.js defines 1 function(s): bindArgs.
What does ReactFlightActionServer.js depend on?
ReactFlightActionServer.js imports 3 module(s): ReactFlightClientConfig, ReactFlightReplyServer.js, ReactTypes.
Where is ReactFlightActionServer.js in the architecture?
ReactFlightActionServer.js is located at packages/react-server/src/ReactFlightActionServer.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react-server/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free