hasKnownNonRenderCall() — react Function Reference
Architecture documentation for the hasKnownNonRenderCall() function in OptimizeForSSR.ts from the react codebase.
Entity Profile
Dependency Diagram
graph TD be7548c2_b2e2_2b04_f6f0_8d2da9219b46["hasKnownNonRenderCall()"] 1acbc29a_0c93_81f5_ff8e_d4434aae5ed9["OptimizeForSSR.ts"] be7548c2_b2e2_2b04_f6f0_8d2da9219b46 -->|defined in| 1acbc29a_0c93_81f5_ff8e_d4434aae5ed9 93674d7a_a49c_dadd_0d67_6c5e98450587["optimizeForSSR()"] 93674d7a_a49c_dadd_0d67_6c5e98450587 -->|calls| be7548c2_b2e2_2b04_f6f0_8d2da9219b46 style be7548c2_b2e2_2b04_f6f0_8d2da9219b46 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
compiler/packages/babel-plugin-react-compiler/src/Optimization/OptimizeForSSR.ts lines 245–258
function hasKnownNonRenderCall(fn: HIRFunction): boolean {
for (const block of fn.body.blocks.values()) {
for (const instr of block.instructions) {
if (
instr.value.kind === 'CallExpression' &&
(isSetStateType(instr.value.callee.identifier) ||
isStartTransitionType(instr.value.callee.identifier))
) {
return true;
}
}
}
return false;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does hasKnownNonRenderCall() do?
hasKnownNonRenderCall() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/OptimizeForSSR.ts.
Where is hasKnownNonRenderCall() defined?
hasKnownNonRenderCall() is defined in compiler/packages/babel-plugin-react-compiler/src/Optimization/OptimizeForSSR.ts at line 245.
What calls hasKnownNonRenderCall()?
hasKnownNonRenderCall() is called by 1 function(s): optimizeForSSR.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free