pushSwitchContext() — react Function Reference
Architecture documentation for the pushSwitchContext() function in code-path-state.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD a26698c0_a209_79e4_0eea_e08c1ff5bcb5["pushSwitchContext()"] d3cee22c_5e2d_f853_c075_2c7c55e5d22c["CodePathState"] a26698c0_a209_79e4_0eea_e08c1ff5bcb5 -->|defined in| d3cee22c_5e2d_f853_c075_2c7c55e5d22c b619f50d_ffe6_93b8_b7a7_402d0cdecbc6["pushBreakContext()"] a26698c0_a209_79e4_0eea_e08c1ff5bcb5 -->|calls| b619f50d_ffe6_93b8_b7a7_402d0cdecbc6 style a26698c0_a209_79e4_0eea_e08c1ff5bcb5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js lines 617–629
pushSwitchContext(hasCase, label) {
this.switchContext = {
upper: this.switchContext,
hasCase,
defaultSegments: null,
defaultBodySegments: null,
foundDefault: false,
lastIsDefault: false,
countForks: 0,
};
this.pushBreakContext(true, label);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does pushSwitchContext() do?
pushSwitchContext() is a function in the react codebase, defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js.
Where is pushSwitchContext() defined?
pushSwitchContext() is defined in packages/eslint-plugin-react-hooks/src/code-path-analysis/code-path-state.js at line 617.
What does pushSwitchContext() call?
pushSwitchContext() calls 1 function(s): pushBreakContext.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free