pushChoiceContext() — react Function Reference
Architecture documentation for the pushChoiceContext() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD f6f7a515_92f3_1128_a333_ef52d2269bc9["pushChoiceContext()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] f6f7a515_92f3_1128_a333_ef52d2269bc9 -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c 5ce761e9_cd5d_9b87_20a6_87d804fde11c["makeOptionalNode()"] 5ce761e9_cd5d_9b87_20a6_87d804fde11c -->|calls| f6f7a515_92f3_1128_a333_ef52d2269bc9 575dfda7_fd7d_2e7a_7b66_a9eefb7b5c2a["pushLoopContext()"] 575dfda7_fd7d_2e7a_7b66_a9eefb7b5c2a -->|calls| f6f7a515_92f3_1128_a333_ef52d2269bc9 style f6f7a515_92f3_1128_a333_ef52d2269bc9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 346–356
pushChoiceContext(kind, isForkingAsResult) {
this.choiceContext = {
upper: this.choiceContext,
kind,
isForkingAsResult,
trueForkContext: ForkContext.newEmpty(this.forkContext),
falseForkContext: ForkContext.newEmpty(this.forkContext),
qqForkContext: ForkContext.newEmpty(this.forkContext),
processed: false,
};
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does pushChoiceContext() do?
pushChoiceContext() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is pushChoiceContext() defined?
pushChoiceContext() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 346.
What calls pushChoiceContext()?
pushChoiceContext() is called by 2 function(s): makeOptionalNode, pushLoopContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free