makeForUpdate() — react Function Reference
Architecture documentation for the makeForUpdate() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 45535d1f_482a_b979_c75d_6d69099f5408["makeForUpdate()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] 45535d1f_482a_b979_c75d_6d69099f5408 -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c 9b61c605_e800_3e20_0964_f24f896ebf43["finalizeTestSegmentsOfFor()"] 45535d1f_482a_b979_c75d_6d69099f5408 -->|calls| 9b61c605_e800_3e20_0964_f24f896ebf43 style 45535d1f_482a_b979_c75d_6d69099f5408 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 1175–1192
makeForUpdate() {
const context = this.loopContext;
const choiceContext = this.choiceContext;
const forkContext = this.forkContext;
// Make the next paths of the test.
if (context.testSegments) {
finalizeTestSegmentsOfFor(context, choiceContext, forkContext.head);
} else {
context.endOfInitSegments = forkContext.head;
}
// Update state.
const updateSegments = forkContext.makeDisconnected(-1, -1);
context.continueDestSegments = context.updateSegments = updateSegments;
forkContext.replaceHead(updateSegments);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does makeForUpdate() do?
makeForUpdate() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is makeForUpdate() defined?
makeForUpdate() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 1175.
What does makeForUpdate() call?
makeForUpdate() calls 1 function(s): finalizeTestSegmentsOfFor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free