Home / Function/ _getMetadataBySource() — react Function Reference

_getMetadataBySource() — react Function Reference

Architecture documentation for the _getMetadataBySource() function in SourceMapMetadataConsumer.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c02a4f80_a820_866d_445a_6951aae599f7["_getMetadataBySource()"]
  c91679b7_c93e_6e95_410e_81e24076c30a["SourceMapMetadataConsumer"]
  c02a4f80_a820_866d_445a_6951aae599f7 -->|defined in| c91679b7_c93e_6e95_410e_81e24076c30a
  8363e8e9_bb7f_f116_6160_65e0851ee4a9["_getHookMapForSource()"]
  8363e8e9_bb7f_f116_6160_65e0851ee4a9 -->|calls| c02a4f80_a820_866d_445a_6951aae599f7
  8436bb82_dab4_7302_5fc5_eff8d217773c["_getMetadataObjectsBySourceNames()"]
  c02a4f80_a820_866d_445a_6951aae599f7 -->|calls| 8436bb82_dab4_7302_5fc5_eff8d217773c
  style c02a4f80_a820_866d_445a_6951aae599f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/hooks/SourceMapMetadataConsumer.js lines 112–120

  _getMetadataBySource(): MetadataMap {
    if (this._metadataBySource == null) {
      this._metadataBySource = this._getMetadataObjectsBySourceNames(
        this._sourceMap,
      );
    }

    return this._metadataBySource;
  }

Domain

Subdomains

Frequently Asked Questions

What does _getMetadataBySource() do?
_getMetadataBySource() is a function in the react codebase, defined in packages/react-devtools-shared/src/hooks/SourceMapMetadataConsumer.js.
Where is _getMetadataBySource() defined?
_getMetadataBySource() is defined in packages/react-devtools-shared/src/hooks/SourceMapMetadataConsumer.js at line 112.
What does _getMetadataBySource() call?
_getMetadataBySource() calls 1 function(s): _getMetadataObjectsBySourceNames.
What calls _getMetadataBySource()?
_getMetadataBySource() is called by 1 function(s): _getHookMapForSource.

Analyze Your Own Codebase

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

Try Supermodel Free