Home / Function/ parseStackTracePrivate() — react Function Reference

parseStackTracePrivate() — react Function Reference

Architecture documentation for the parseStackTracePrivate() function in ReactFlightStackConfigV8.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c40e5bd8_d54c_3976_6ecf_02f8c695a169["parseStackTracePrivate()"]
  6b04fae3_e76f_58bb_e731_caa9abb4c49c["ReactFlightStackConfigV8.js"]
  c40e5bd8_d54c_3976_6ecf_02f8c695a169 -->|defined in| 6b04fae3_e76f_58bb_e731_caa9abb4c49c
  style c40e5bd8_d54c_3976_6ecf_02f8c695a169 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-server/src/ReactFlightStackConfigV8.js lines 156–172

export function parseStackTracePrivate(
  error: Error,
  skipFrames: number,
): null | ReactStackTrace {
  collectedStackTrace = null;
  framesToSkip = skipFrames;
  const previousPrepare = Error.prepareStackTrace;
  Error.prepareStackTrace = collectStackTracePrivate;
  try {
    if (error.stack !== '') {
      return null;
    }
  } finally {
    Error.prepareStackTrace = previousPrepare;
  }
  return collectedStackTrace;
}

Domain

Subdomains

Frequently Asked Questions

What does parseStackTracePrivate() do?
parseStackTracePrivate() is a function in the react codebase, defined in packages/react-server/src/ReactFlightStackConfigV8.js.
Where is parseStackTracePrivate() defined?
parseStackTracePrivate() is defined in packages/react-server/src/ReactFlightStackConfigV8.js at line 156.

Analyze Your Own Codebase

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

Try Supermodel Free