Home / Function/ T() — react Function Reference

T() — react Function Reference

Architecture documentation for the T() function in ReactStartTransition.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  c16958ea_c537_a8cc_bbff_7ad8778d627d["T()"]
  6c1a4807_17b9_f103_ac9c_f90f16c710be["ReactStartTransition.js"]
  c16958ea_c537_a8cc_bbff_7ad8778d627d -->|defined in| 6c1a4807_17b9_f103_ac9c_f90f16c710be
  style c16958ea_c537_a8cc_bbff_7ad8778d627d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react/src/ReactStartTransition.js lines 185–202

function warnAboutTransitionSubscriptions(
  prevTransition: Transition | null,
  currentTransition: Transition,
) {
  if (__DEV__) {
    if (prevTransition === null && currentTransition._updatedFibers) {
      const updatedFibersCount = currentTransition._updatedFibers.size;
      currentTransition._updatedFibers.clear();
      if (updatedFibersCount > 10) {
        console.warn(
          'Detected a large number of updates inside startTransition. ' +
            'If this is due to a subscription please re-write it to use React provided hooks. ' +
            'Otherwise concurrent mode guarantees are off the table.',
        );
      }
    }
  }
}

Domain

Subdomains

Frequently Asked Questions

What does T() do?
T() is a function in the react codebase, defined in packages/react/src/ReactStartTransition.js.
Where is T() defined?
T() is defined in packages/react/src/ReactStartTransition.js at line 185.

Analyze Your Own Codebase

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

Try Supermodel Free