Home / Function/ isMemoCallback() — react Function Reference

isMemoCallback() — react Function Reference

Architecture documentation for the isMemoCallback() function in babel-plugin-annotate-react-code.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  42add05a_c196_1d10_3e0f_b8aa6b250328["isMemoCallback()"]
  90fd4a4d_9742_70a7_9512_f9dd5b565200["babel-plugin-annotate-react-code.ts"]
  42add05a_c196_1d10_3e0f_b8aa6b250328 -->|defined in| 90fd4a4d_9742_70a7_9512_f9dd5b565200
  40539f87_cad8_e5ab_baf5_c8916ae353cf["isComponentOrHookLike()"]
  40539f87_cad8_e5ab_baf5_c8916ae353cf -->|calls| 42add05a_c196_1d10_3e0f_b8aa6b250328
  97729260_91e5_ef3e_7c49_957ab5676be6["isReactAPI()"]
  42add05a_c196_1d10_3e0f_b8aa6b250328 -->|calls| 97729260_91e5_ef3e_7c49_957ab5676be6
  style 42add05a_c196_1d10_3e0f_b8aa6b250328 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts lines 190–196

function isMemoCallback(path: NodePath<t.Expression>): boolean {
  return (
    path.parentPath.isCallExpression() &&
    path.parentPath.get('callee').isExpression() &&
    isReactAPI(path.parentPath.get('callee'), 'memo')
  );
}

Subdomains

Calls

Frequently Asked Questions

What does isMemoCallback() do?
isMemoCallback() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts.
Where is isMemoCallback() defined?
isMemoCallback() is defined in compiler/packages/babel-plugin-react-compiler/scripts/babel-plugin-annotate-react-code.ts at line 190.
What does isMemoCallback() call?
isMemoCallback() calls 1 function(s): isReactAPI.
What calls isMemoCallback()?
isMemoCallback() is called by 1 function(s): isComponentOrHookLike.

Analyze Your Own Codebase

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

Try Supermodel Free