Home / Function/ useCondDepInSwitchMissingCase() — react Function Reference

useCondDepInSwitchMissingCase() — react Function Reference

Architecture documentation for the useCondDepInSwitchMissingCase() function in cfg-switch-missing-case.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  29a85366_ae85_888c_d6fe_daf38a2d4056["useCondDepInSwitchMissingCase()"]
  0b2b8893_23a9_a11a_a19f_c3f38778261b["cfg-switch-missing-case.js"]
  29a85366_ae85_888c_d6fe_daf38a2d4056 -->|defined in| 0b2b8893_23a9_a11a_a19f_c3f38778261b
  style 29a85366_ae85_888c_d6fe_daf38a2d4056 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/cfg-switch-missing-case.js lines 6–20

function useCondDepInSwitchMissingCase(props, other) {
  const x = {};
  switch (identity(other)) {
    case 1:
      x.a = props.a.b;
      break;
    case 2:
      x.b = 42;
      break;
    default:
      x.c = props.a.b;
      break;
  }
  return x;
}

Subdomains

Frequently Asked Questions

What does useCondDepInSwitchMissingCase() do?
useCondDepInSwitchMissingCase() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/cfg-switch-missing-case.js.
Where is useCondDepInSwitchMissingCase() defined?
useCondDepInSwitchMissingCase() is defined in compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/reduce-reactive-deps/cfg-switch-missing-case.js at line 6.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free