Home / Function/ throwIfIncomplete() — react Function Reference

throwIfIncomplete() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9fc35b5a_5690_5a53_fe19_60adb195e3af["throwIfIncomplete()"]
  a3f7147d_da0b_56dc_ffc9_a9e2bbc4526a["preprocessData.js"]
  9fc35b5a_5690_5a53_fe19_60adb195e3af -->|defined in| a3f7147d_da0b_56dc_ffc9_a9e2bbc4526a
  7e379096_4ef1_e90c_7e2b_b822b6321992["processTimelineEvent()"]
  7e379096_4ef1_e90c_7e2b_b822b6321992 -->|calls| 9fc35b5a_5690_5a53_fe19_60adb195e3af
  style 9fc35b5a_5690_5a53_fe19_60adb195e3af fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-timeline/src/import-worker/preprocessData.js lines 216–229

function throwIfIncomplete(
  type: ReactMeasureType,
  stack: ProcessorState['measureStack'],
) {
  const lastIndex = stack.length - 1;
  if (lastIndex >= 0) {
    const last = stack[lastIndex];
    if (last.stopTime === undefined && last.type === type) {
      throw new InvalidProfileError(
        `Unexpected type "${type}" started before "${last.type}" completed.`,
      );
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free