Frontmatter
| id | 4003 |
| title | manager.Component: getChildren() => smarter logic required |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Feb 7, 2023, 2:48 PM |
| updatedAt | Feb 7, 2023, 3:08 PM |
| githubUrl | https://github.com/neomjs/neo/issues/4003 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 7, 2023, 3:08 PM |

the original implementation is really old to be fair:
getChildren(component) { let childComponents = [], childNodes = VNodeUtil.getChildIds(component.vnode), childComponent; childNodes.forEach(node => { childComponent = this.get(node); if (childComponent) { childComponents.push(childComponent); } }); return childComponents; }it is parsing the vnode, which does not exist before a component has been rendered. instead, we want to search the collection recursively for
parentIdmatches.