MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / isComponentMounted

Method isComponentMounted

packages/pi-tui/src/tui.ts:489–491  ·  view source on GitHub ↗
(component: Component)

Source from the content-addressed store, hash-verified

487 }
488
489 private isComponentMounted(component: Component): boolean {
490 return this.children.some((child) => this.containsComponent(child, component));
491 }
492
493 private containsComponent(root: Component, target: Component): boolean {
494 if (root === target) return true;

Callers 1

setFocusInternalMethod · 0.95

Calls 1

containsComponentMethod · 0.95

Tested by

no test coverage detected