Home / Function/ refTypeOfType() — react Function Reference

refTypeOfType() — react Function Reference

Architecture documentation for the refTypeOfType() function in ValidateNoRefAccessInRender.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  87072b27_352c_d825_08de_c21a4abc3c23["refTypeOfType()"]
  8dbbe52d_b145_88fe_e0da_33d06180b558["ValidateNoRefAccessInRender.ts"]
  87072b27_352c_d825_08de_c21a4abc3c23 -->|defined in| 8dbbe52d_b145_88fe_e0da_33d06180b558
  b2292640_a950_f66a_1a21_4fa1d74f094d["validateNoRefAccessInRenderImpl()"]
  b2292640_a950_f66a_1a21_4fa1d74f094d -->|calls| 87072b27_352c_d825_08de_c21a4abc3c23
  c06d5fe3_6fbc_47fb_7088_b334e439d5f0["nextRefId()"]
  87072b27_352c_d825_08de_c21a4abc3c23 -->|calls| c06d5fe3_6fbc_47fb_7088_b334e439d5f0
  style 87072b27_352c_d825_08de_c21a4abc3c23 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoRefAccessInRender.ts lines 171–179

function refTypeOfType(place: Place): RefAccessType {
  if (isRefValueType(place.identifier)) {
    return {kind: 'RefValue'};
  } else if (isUseRefType(place.identifier)) {
    return {kind: 'Ref', refId: nextRefId()};
  } else {
    return {kind: 'None'};
  }
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does refTypeOfType() do?
refTypeOfType() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoRefAccessInRender.ts.
Where is refTypeOfType() defined?
refTypeOfType() is defined in compiler/packages/babel-plugin-react-compiler/src/Validation/ValidateNoRefAccessInRender.ts at line 171.
What does refTypeOfType() call?
refTypeOfType() calls 1 function(s): nextRefId.
What calls refTypeOfType()?
refTypeOfType() is called by 1 function(s): validateNoRefAccessInRenderImpl.

Analyze Your Own Codebase

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

Try Supermodel Free