MCPcopy Index your code
hub / github.com/codeaashu/claude-code / cleanupYogaNode

Function cleanupYogaNode

src/ink/reconciler.ts:95–104  ·  view source on GitHub ↗
(node: DOMElement | TextNode)

Source from the content-addressed store, hash-verified

93}
94
95const cleanupYogaNode = (node: DOMElement | TextNode): void => {
96 const yogaNode = node.yogaNode
97 if (yogaNode) {
98 yogaNode.unsetMeasureFunc()
99 // Clear all references BEFORE freeing to prevent other code from
100 // accessing freed WASM memory during concurrent operations
101 clearYogaNodeReferences(node)
102 yogaNode.freeRecursive()
103 }
104}
105
106// --
107

Callers 2

removeChildFromContainerFunction · 0.85
removeChildFunction · 0.85

Calls 3

clearYogaNodeReferencesFunction · 0.85
unsetMeasureFuncMethod · 0.45
freeRecursiveMethod · 0.45

Tested by

no test coverage detected