Home / Function/ cacheApplySignature() — react Function Reference

cacheApplySignature() — react Function Reference

Architecture documentation for the cacheApplySignature() function in InferMutationAliasingEffects.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  86dd37df_aa77_e57f_86b5_809912afc646["cacheApplySignature()"]
  0e22a644_fb0d_df7b_1432_f6d30878a62a["Context"]
  86dd37df_aa77_e57f_86b5_809912afc646 -->|defined in| 0e22a644_fb0d_df7b_1432_f6d30878a62a
  7cb90dd3_dbe0_0087_670d_277ddeadabfc["applyEffect()"]
  7cb90dd3_dbe0_0087_670d_277ddeadabfc -->|calls| 86dd37df_aa77_e57f_86b5_809912afc646
  14f2e51a_d755_814e_2f56_72d3ed119459["getOrInsertDefault()"]
  86dd37df_aa77_e57f_86b5_809912afc646 -->|calls| 14f2e51a_d755_814e_2f56_72d3ed119459
  4663af75_e270_25e3_3415_1230be609d66["getOrInsertWith()"]
  86dd37df_aa77_e57f_86b5_809912afc646 -->|calls| 4663af75_e270_25e3_3415_1230be609d66
  style 86dd37df_aa77_e57f_86b5_809912afc646 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts lines 292–303

  cacheApplySignature(
    signature: AliasingSignature,
    effect: Extract<AliasingEffect, {kind: 'Apply'}>,
    f: () => Array<AliasingEffect> | null,
  ): Array<AliasingEffect> | null {
    const inner = getOrInsertDefault(
      this.applySignatureCache,
      signature,
      new Map(),
    );
    return getOrInsertWith(inner, effect, f);
  }

Domain

Subdomains

Called By

Frequently Asked Questions

What does cacheApplySignature() do?
cacheApplySignature() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts.
Where is cacheApplySignature() defined?
cacheApplySignature() is defined in compiler/packages/babel-plugin-react-compiler/src/Inference/InferMutationAliasingEffects.ts at line 292.
What does cacheApplySignature() call?
cacheApplySignature() calls 2 function(s): getOrInsertDefault, getOrInsertWith.
What calls cacheApplySignature()?
cacheApplySignature() is called by 1 function(s): applyEffect.

Analyze Your Own Codebase

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

Try Supermodel Free