Home / Function/ assertCurrentComponentMeasureType() — react Function Reference

assertCurrentComponentMeasureType() — react Function Reference

Architecture documentation for the assertCurrentComponentMeasureType() function in preprocessData.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  922e88f6_6e1f_c3a1_f9b4_dbc80e0f0b08["assertCurrentComponentMeasureType()"]
  a3f7147d_da0b_56dc_ffc9_a9e2bbc4526a["preprocessData.js"]
  922e88f6_6e1f_c3a1_f9b4_dbc80e0f0b08 -->|defined in| a3f7147d_da0b_56dc_ffc9_a9e2bbc4526a
  4742a5ec_80ec_cb9d_6adb_2dfcc87c1cee["processReactComponentMeasure()"]
  4742a5ec_80ec_cb9d_6adb_2dfcc87c1cee -->|calls| 922e88f6_6e1f_c3a1_f9b4_dbc80e0f0b08
  style 922e88f6_6e1f_c3a1_f9b4_dbc80e0f0b08 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/import-worker/preprocessData.js lines 816–829

function assertCurrentComponentMeasureType(
  state: ProcessorState,
  type: ReactComponentMeasureType,
): void {
  if (state.currentReactComponentMeasure === null) {
    console.error(
      `Component measure type "${type}" stopped while no measure was in progress`,
    );
  } else if (state.currentReactComponentMeasure.type !== type) {
    console.error(
      `Component measure type "${type}" stopped while type ${state.currentReactComponentMeasure.type} in progress`,
    );
  }
}

Domain

Subdomains

Frequently Asked Questions

What does assertCurrentComponentMeasureType() do?
assertCurrentComponentMeasureType() is a function in the react codebase, defined in packages/react-devtools-timeline/src/import-worker/preprocessData.js.
Where is assertCurrentComponentMeasureType() defined?
assertCurrentComponentMeasureType() is defined in packages/react-devtools-timeline/src/import-worker/preprocessData.js at line 816.
What calls assertCurrentComponentMeasureType()?
assertCurrentComponentMeasureType() is called by 1 function(s): processReactComponentMeasure.

Analyze Your Own Codebase

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

Try Supermodel Free