Home / Function/ registerRenderCounter() — react Function Reference

registerRenderCounter() — react Function Reference

Architecture documentation for the registerRenderCounter() function in index.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  82d7425b_049d_aab9_9b5d_9c9e4140aade["registerRenderCounter()"]
  e7e94027_87c5_661b_dd97_be583c709eb3["index.ts"]
  82d7425b_049d_aab9_9b5d_9c9e4140aade -->|defined in| e7e94027_87c5_661b_dd97_be583c709eb3
  ca8d2fc5_a6ca_2a2f_e4e3_d695ef641cae["useRenderCounter()"]
  ca8d2fc5_a6ca_2a2f_e4e3_d695ef641cae -->|calls| 82d7425b_049d_aab9_9b5d_9c9e4140aade
  style 82d7425b_049d_aab9_9b5d_9c9e4140aade fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/react-compiler-runtime/src/index.ts lines 211–218

function registerRenderCounter(name: string, val: {count: number}) {
  let counters = renderCounterRegistry.get(name);
  if (counters == null) {
    counters = new Set();
    renderCounterRegistry.set(name, counters);
  }
  counters.add(val);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does registerRenderCounter() do?
registerRenderCounter() is a function in the react codebase, defined in compiler/packages/react-compiler-runtime/src/index.ts.
Where is registerRenderCounter() defined?
registerRenderCounter() is defined in compiler/packages/react-compiler-runtime/src/index.ts at line 211.
What calls registerRenderCounter()?
registerRenderCounter() is called by 1 function(s): useRenderCounter.

Analyze Your Own Codebase

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

Try Supermodel Free