Home / Function/ supportsConsoleTasks() — react Function Reference

supportsConsoleTasks() — react Function Reference

Architecture documentation for the supportsConsoleTasks() function in DevToolsFiberComponentStack.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  70f1a1bb_46c4_a03b_56b7_a30036cbc88c["supportsConsoleTasks()"]
  2bbfa631_5780_6883_1746_b7c42df10b5d["DevToolsFiberComponentStack.js"]
  70f1a1bb_46c4_a03b_56b7_a30036cbc88c -->|defined in| 2bbfa631_5780_6883_1746_b7c42df10b5d
  style 70f1a1bb_46c4_a03b_56b7_a30036cbc88c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/backend/fiber/DevToolsFiberComponentStack.js lines 134–139

export function supportsConsoleTasks(fiber: Fiber): boolean {
  // If this Fiber supports native console.createTask then we are already running
  // inside a native async stack trace if it's active - meaning the DevTools is open.
  // Ideally we'd detect if this task was created while the DevTools was open or not.
  return !!fiber._debugTask;
}

Domain

Subdomains

Frequently Asked Questions

What does supportsConsoleTasks() do?
supportsConsoleTasks() is a function in the react codebase, defined in packages/react-devtools-shared/src/backend/fiber/DevToolsFiberComponentStack.js.
Where is supportsConsoleTasks() defined?
supportsConsoleTasks() is defined in packages/react-devtools-shared/src/backend/fiber/DevToolsFiberComponentStack.js at line 134.

Analyze Your Own Codebase

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

Try Supermodel Free