Home / Function/ filterStackFrame() — react Function Reference

filterStackFrame() — react Function Reference

Architecture documentation for the filterStackFrame() function in ReactFlightAsyncDebugInfo-test.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  132660a3_eb3c_f305_b0af_77affa0da098["filterStackFrame()"]
  3ff990fb_4d2c_e7ba_63a9_b0c56a5b8b81["ReactFlightAsyncDebugInfo-test.js"]
  132660a3_eb3c_f305_b0af_77affa0da098 -->|defined in| 3ff990fb_4d2c_e7ba_63a9_b0c56a5b8b81
  style 132660a3_eb3c_f305_b0af_77affa0da098 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js lines 25–34

function filterStackFrame(filename, functionName) {
  return (
    !filename.startsWith('node:') &&
    !filename.includes('node_modules') &&
    // Filter out our own internal source code since it'll typically be in node_modules
    (!filename.includes('/packages/') || filename.includes('/__tests__/')) &&
    !filename.includes('/build/') &&
    !functionName.includes('internal_')
  );
}

Domain

Subdomains

Frequently Asked Questions

What does filterStackFrame() do?
filterStackFrame() is a function in the react codebase, defined in packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js.
Where is filterStackFrame() defined?
filterStackFrame() is defined in packages/react-server/src/__tests__/ReactFlightAsyncDebugInfo-test.js at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free