ReactiveScopeDependency Type — react Architecture
Architecture documentation for the ReactiveScopeDependency type/interface in HIR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD e6742cc6_232d_6b86_c018_d1698d86f3e9["ReactiveScopeDependency"] a451512c_09d1_62a9_9849_56979af31473["HIR.ts"] e6742cc6_232d_6b86_c018_d1698d86f3e9 -->|defined in| a451512c_09d1_62a9_9849_56979af31473 style e6742cc6_232d_6b86_c018_d1698d86f3e9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts lines 1644–1659
export type ReactiveScopeDependency = {
identifier: Identifier;
/**
* Reflects whether the base identifier is reactive. Note that some reactive
* objects may have non-reactive properties, but we do not currently track
* this.
*
* ```js
* // Technically, result[0] is reactive and result[1] is not.
* // Currently, both dependencies would be marked as reactive.
* const result = useState();
* ```
*/
reactive: boolean;
path: DependencyPath;
};
Source
Frequently Asked Questions
What is the ReactiveScopeDependency type?
ReactiveScopeDependency is a type/interface in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts.
Where is ReactiveScopeDependency defined?
ReactiveScopeDependency is defined in compiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts at line 1644.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free