stabilizeBlockIds() — react Function Reference
Architecture documentation for the stabilizeBlockIds() function in StabilizeBlockIds.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD f86776c9_b45d_7c29_966c_3b832e4abd57["stabilizeBlockIds()"] cc16bb5e_e9d5_74bd_0764_79875a9ffa5b["StabilizeBlockIds.ts"] f86776c9_b45d_7c29_966c_3b832e4abd57 -->|defined in| cc16bb5e_e9d5_74bd_0764_79875a9ffa5b c3bc3875_256f_8f5e_7800_2f9c5bae65eb["runWithEnvironment()"] c3bc3875_256f_8f5e_7800_2f9c5bae65eb -->|calls| f86776c9_b45d_7c29_966c_3b832e4abd57 2435b5f8_41a6_0458_ba88_4479b965455f["visitReactiveFunction()"] f86776c9_b45d_7c29_966c_3b832e4abd57 -->|calls| 2435b5f8_41a6_0458_ba88_4479b965455f style f86776c9_b45d_7c29_966c_3b832e4abd57 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts lines 18–28
export function stabilizeBlockIds(fn: ReactiveFunction): void {
const referenced: Set<BlockId> = new Set();
visitReactiveFunction(fn, new CollectReferencedLabels(), referenced);
const mappings = new Map<BlockId, BlockId>();
for (const blockId of referenced) {
mappings.set(blockId, makeBlockId(mappings.size));
}
visitReactiveFunction(fn, new RewriteBlockIds(), mappings);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does stabilizeBlockIds() do?
stabilizeBlockIds() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts.
Where is stabilizeBlockIds() defined?
stabilizeBlockIds() is defined in compiler/packages/babel-plugin-react-compiler/src/ReactiveScopes/StabilizeBlockIds.ts at line 18.
What does stabilizeBlockIds() call?
stabilizeBlockIds() calls 1 function(s): visitReactiveFunction.
What calls stabilizeBlockIds()?
stabilizeBlockIds() is called by 1 function(s): runWithEnvironment.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free