ReactSharedInternalsClient.js — react Source File
Architecture documentation for ReactSharedInternalsClient.js, a javascript file in the react codebase. 4 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR d73e8952_8d9a_9536_f6d1_89e62a9194a3["ReactSharedInternalsClient.js"] 6c1a4807_17b9_f103_ac9c_f90f16c710be["ReactStartTransition.js"] d73e8952_8d9a_9536_f6d1_89e62a9194a3 --> 6c1a4807_17b9_f103_ac9c_f90f16c710be 42892443_e223_3da0_aeb9_e1b32a408fb0["ReactInternalTypes"] d73e8952_8d9a_9536_f6d1_89e62a9194a3 --> 42892443_e223_3da0_aeb9_e1b32a408fb0 d8f20c67_f5fa_0f0a_c967_c41fd9ffce07["ReactTypes"] d73e8952_8d9a_9536_f6d1_89e62a9194a3 --> d8f20c67_f5fa_0f0a_c967_c41fd9ffce07 8344de1b_978c_be0f_eebd_38ccc4962a93["ReactFeatureFlags"] d73e8952_8d9a_9536_f6d1_89e62a9194a3 --> 8344de1b_978c_be0f_eebd_38ccc4962a93 32ddd28a_4f69_b50e_08f3_813512cb1996["ReactAct.js"] 32ddd28a_4f69_b50e_08f3_813512cb1996 --> d73e8952_8d9a_9536_f6d1_89e62a9194a3 ffdf54f0_7e34_f1e9_1504_9dbadb0fbac5["ReactClient.js"] ffdf54f0_7e34_f1e9_1504_9dbadb0fbac5 --> d73e8952_8d9a_9536_f6d1_89e62a9194a3 style d73e8952_8d9a_9536_f6d1_89e62a9194a3 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 {Dispatcher} from 'react-reconciler/src/ReactInternalTypes';
import type {AsyncDispatcher} from 'react-reconciler/src/ReactInternalTypes';
import type {Transition} from './ReactStartTransition';
import type {GestureProvider, GestureOptions} from 'shared/ReactTypes';
import {enableGestureTransition} from 'shared/ReactFeatureFlags';
type onStartTransitionFinish = (Transition, mixed) => void;
type onStartGestureTransitionFinish = (
Transition,
GestureProvider,
?GestureOptions,
) => () => void;
export type SharedStateClient = {
H: null | Dispatcher, // ReactCurrentDispatcher for Hooks
A: null | AsyncDispatcher, // ReactCurrentCache for Cache
T: null | Transition, // ReactCurrentBatchConfig for Transitions
S: null | onStartTransitionFinish,
G: null | onStartGestureTransitionFinish,
// DEV-only
// ReactCurrentActQueue
actQueue: null | Array<RendererTask>,
// When zero this means we're outside an async startTransition.
asyncTransitions: number,
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
isBatchingLegacy: boolean,
didScheduleLegacyUpdate: boolean,
// Tracks whether something called `use` during the current batch of work.
// Determines whether we should yield to microtasks to unwrap already resolved
// promises without suspending.
didUsePromise: boolean,
// Track first uncaught error within this act
thrownErrors: Array<mixed>,
// ReactDebugCurrentFrame
getCurrentStack: null | (() => string),
// ReactOwnerStackReset
recentlyCreatedOwnerStacks: 0,
};
export type RendererTask = boolean => RendererTask | null;
const ReactSharedInternals: SharedStateClient = ({
H: null,
A: null,
T: null,
S: null,
}: any);
if (enableGestureTransition) {
ReactSharedInternals.G = null;
}
if (__DEV__) {
ReactSharedInternals.actQueue = null;
ReactSharedInternals.asyncTransitions = 0;
ReactSharedInternals.isBatchingLegacy = false;
ReactSharedInternals.didScheduleLegacyUpdate = false;
ReactSharedInternals.didUsePromise = false;
ReactSharedInternals.thrownErrors = [];
// Stack implementation injected by the current renderer.
ReactSharedInternals.getCurrentStack = (null: null | (() => string));
ReactSharedInternals.recentlyCreatedOwnerStacks = 0;
}
export default ReactSharedInternals;
Domain
Subdomains
Dependencies
- ReactFeatureFlags
- ReactInternalTypes
- ReactStartTransition.js
- ReactTypes
Source
Frequently Asked Questions
What does ReactSharedInternalsClient.js do?
ReactSharedInternalsClient.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 ReactSharedInternalsClient.js?
ReactSharedInternalsClient.js defines 3 function(s): ReactSharedInternals, RendererTask, onStartTransitionFinish.
What does ReactSharedInternalsClient.js depend on?
ReactSharedInternalsClient.js imports 4 module(s): ReactFeatureFlags, ReactInternalTypes, ReactStartTransition.js, ReactTypes.
What files import ReactSharedInternalsClient.js?
ReactSharedInternalsClient.js is imported by 2 file(s): ReactAct.js, ReactClient.js.
Where is ReactSharedInternalsClient.js in the architecture?
ReactSharedInternalsClient.js is located at packages/react/src/ReactSharedInternalsClient.js (domain: BabelCompiler, subdomain: Validation, directory: packages/react/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free