makeWhileBody() — react Function Reference
Architecture documentation for the makeWhileBody() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD eec84af5_0b12_a189_b149_5ca55d4d7e0f["makeWhileBody()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] eec84af5_0b12_a189_b149_5ca55d4d7e0f -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c style eec84af5_0b12_a189_b149_5ca55d4d7e0f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 1102–1117
makeWhileBody() {
const context = this.loopContext;
const choiceContext = this.choiceContext;
const forkContext = this.forkContext;
if (!choiceContext.processed) {
choiceContext.trueForkContext.add(forkContext.head);
choiceContext.falseForkContext.add(forkContext.head);
}
// Update state.
if (context.test !== true) {
context.brokenForkContext.addAll(choiceContext.falseForkContext);
}
forkContext.replaceHead(choiceContext.trueForkContext.makeNext(0, -1));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does makeWhileBody() do?
makeWhileBody() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeWhileBody() defined?
makeWhileBody() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 1102.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free