MCPcopy
hub / github.com/facebook/react / getTreeId

Function getTreeId

packages/react-server/src/ReactFizzTreeContext.js:73–78  ·  view source on GitHub ↗
(context: TreeContext)

Source from the content-addressed store, hash-verified

71};
72
73export function getTreeId(context: TreeContext): string {
74 const overflow = context.overflow;
75 const idWithLeadingBit = context.id;
76 const id = idWithLeadingBit & ~getLeadingBit(idWithLeadingBit);
77 return id.toString(32) + overflow;
78}
79
80export function pushTreeContext(
81 baseContext: TreeContext,

Callers 2

useIdFunction · 0.90
getViewTransitionNameFunction · 0.90

Calls 2

getLeadingBitFunction · 0.70
toStringMethod · 0.65

Tested by

no test coverage detected