LearnNewsExamplesServices
Frontmatter
id8819
titlefeat: Add hasParent and getDistance to ComponentManager
stateClosed
labels
enhancementaicore
assigneestobiu
createdAtJan 20, 2026, 1:21 AM
updatedAtJan 20, 2026, 1:22 AM
githubUrlhttps://github.com/neomjs/neo/issues/8819
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 20, 2026, 1:22 AM

feat: Add hasParent and getDistance to ComponentManager

Closed v11.23.0 enhancementaicore
tobiu
tobiu commented on Jan 20, 2026, 1:21 AM

Porting useful helper methods from feat/8814-race-condition to the dev branch.

Added methods to Neo.manager.Component:

  1. hasParent(childId, parentId): Boolean check if a component is a descendant of another.
  2. getDistance(childId, parentId): Returns the generational distance (1-based) between child and parent.
tobiu added the enhancement label on Jan 20, 2026, 1:21 AM
tobiu added the ai label on Jan 20, 2026, 1:21 AM
tobiu added the core label on Jan 20, 2026, 1:21 AM
tobiu referenced in commit f0b9ff8 - "feat: Add hasParent and getDistance to ComponentManager (#8819)" on Jan 20, 2026, 1:22 AM
tobiu closed this issue on Jan 20, 2026, 1:22 AM
tobiu assigned to @tobiu on Jan 20, 2026, 1:22 AM