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
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtJan 20, 2026, 1:22 AM

feat: Add hasParent and getDistance to ComponentManager

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.