ReactOwnerStack.js — react Source File
Architecture documentation for ReactOwnerStack.js, a javascript file in the react codebase. 1 imports, 4 dependents.
Entity Profile
Dependency Diagram
graph LR 14b1889e_400a_7c89_0fc3_fabf17c01032["ReactOwnerStack.js"] 1c5695a6_6806_ba54_2074_efc779e66da4["ReactSharedInternals"] 14b1889e_400a_7c89_0fc3_fabf17c01032 --> 1c5695a6_6806_ba54_2074_efc779e66da4 ffdf54f0_7e34_f1e9_1504_9dbadb0fbac5["ReactClient.js"] ffdf54f0_7e34_f1e9_1504_9dbadb0fbac5 --> 14b1889e_400a_7c89_0fc3_fabf17c01032 a893f937_cfbc_33f8_94ec_23cb5000691e["ReactServer.experimental.development.js"] a893f937_cfbc_33f8_94ec_23cb5000691e --> 14b1889e_400a_7c89_0fc3_fabf17c01032 6274036e_add3_9702_84fb_266b97b7660a["ReactServer.fb.js"] 6274036e_add3_9702_84fb_266b97b7660a --> 14b1889e_400a_7c89_0fc3_fabf17c01032 a86f40a1_cfab_7bca_7368_f11f9ee52c80["ReactServer.js"] a86f40a1_cfab_7bca_7368_f11f9ee52c80 --> 14b1889e_400a_7c89_0fc3_fabf17c01032 style 14b1889e_400a_7c89_0fc3_fabf17c01032 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/**
* Copyright (c) Meta Platforms, Inc. and its 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 ReactSharedInternals from 'shared/ReactSharedInternals';
export function captureOwnerStack(): null | string {
if (__DEV__) {
const getCurrentStack = ReactSharedInternals.getCurrentStack;
if (getCurrentStack === null) {
return null;
}
// The current stack will be the owner stack which it is always here.
return getCurrentStack();
}
return null;
}
Domain
Dependencies
- ReactSharedInternals
Imported By
Source
Frequently Asked Questions
What does ReactOwnerStack.js do?
ReactOwnerStack.js is a source file in the react codebase, written in javascript. It belongs to the BabelCompiler domain.
What does ReactOwnerStack.js depend on?
ReactOwnerStack.js imports 1 module(s): ReactSharedInternals.
What files import ReactOwnerStack.js?
ReactOwnerStack.js is imported by 4 file(s): ReactClient.js, ReactServer.experimental.development.js, ReactServer.fb.js, ReactServer.js.
Where is ReactOwnerStack.js in the architecture?
ReactOwnerStack.js is located at packages/react/src/ReactOwnerStack.js (domain: BabelCompiler, directory: packages/react/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free