Home / Function/ getTreeId() — react Function Reference

getTreeId() — react Function Reference

Architecture documentation for the getTreeId() function in ReactFizzTreeContext.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  fdc641fa_a6b8_f59a_e563_deb0f606ffe8["getTreeId()"]
  fe344404_ced0_26ed_f52b_cbbe258bc47a["ReactFizzTreeContext.js"]
  fdc641fa_a6b8_f59a_e563_deb0f606ffe8 -->|defined in| fe344404_ced0_26ed_f52b_cbbe258bc47a
  c2d371b1_f6ea_454d_2ced_40bdc07a6a98["getViewTransitionName()"]
  c2d371b1_f6ea_454d_2ced_40bdc07a6a98 -->|calls| fdc641fa_a6b8_f59a_e563_deb0f606ffe8
  4fca795a_fde9_41d8_5a8c_6cd4e0bdb5d5["getLeadingBit()"]
  fdc641fa_a6b8_f59a_e563_deb0f606ffe8 -->|calls| 4fca795a_fde9_41d8_5a8c_6cd4e0bdb5d5
  style fdc641fa_a6b8_f59a_e563_deb0f606ffe8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-server/src/ReactFizzTreeContext.js lines 73–78

export function getTreeId(context: TreeContext): string {
  const overflow = context.overflow;
  const idWithLeadingBit = context.id;
  const id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
  return id.toString(32) + overflow;
}

Domain

Subdomains

Frequently Asked Questions

What does getTreeId() do?
getTreeId() is a function in the react codebase, defined in packages/react-server/src/ReactFizzTreeContext.js.
Where is getTreeId() defined?
getTreeId() is defined in packages/react-server/src/ReactFizzTreeContext.js at line 73.
What does getTreeId() call?
getTreeId() calls 1 function(s): getLeadingBit.
What calls getTreeId()?
getTreeId() is called by 1 function(s): getViewTransitionName.

Analyze Your Own Codebase

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

Try Supermodel Free