MCPcopy Create free account
hub / github.com/react/react / getTreeId

Function getTreeId

packages/react-reconciler/src/ReactFiberTreeContext.js:99–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99export function getTreeId(): string {
100 const overflow = treeContextOverflow;
101 const idWithLeadingBit = treeContextId;
102 const id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
103 return id.toString(32) + overflow;
104}
105
106export function pushTreeFork(
107 workInProgress: Fiber,

Callers 1

ReactFiberHooks.jsFile · 0.90

Calls 2

getLeadingBitFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected