makeContinue() — react Function Reference
Architecture documentation for the makeContinue() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 4f943365_8b3b_7c3c_592b_8fcdb92d11a2["makeContinue()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] 4f943365_8b3b_7c3c_592b_8fcdb92d11a2 -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c 70d1162f_05be_81dd_370e_97a5997d2b35["getContinueContext()"] 4f943365_8b3b_7c3c_592b_8fcdb92d11a2 -->|calls| 70d1162f_05be_81dd_370e_97a5997d2b35 340594f4_b9ab_167e_55a5_90de76787b13["makeLooped()"] 4f943365_8b3b_7c3c_592b_8fcdb92d11a2 -->|calls| 340594f4_b9ab_167e_55a5_90de76787b13 style 4f943365_8b3b_7c3c_592b_8fcdb92d11a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 1369–1394
makeContinue(label) {
const forkContext = this.forkContext;
if (!forkContext.reachable) {
return;
}
const context = getContinueContext(this, label);
if (context) {
if (context.continueDestSegments) {
makeLooped(this, forkContext.head, context.continueDestSegments);
// If the context is a for-in/of loop, this effects a break also.
if (
context.type === 'ForInStatement' ||
context.type === 'ForOfStatement'
) {
context.brokenForkContext.add(forkContext.head);
}
} else {
context.continueForkContext.add(forkContext.head);
}
}
forkContext.replaceHead(forkContext.makeUnreachable(-1, -1));
}
Domain
Subdomains
Source
Frequently Asked Questions
What does makeContinue() do?
makeContinue() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeContinue() defined?
makeContinue() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 1369.
What does makeContinue() call?
makeContinue() calls 2 function(s): getContinueContext, makeLooped.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free