Frontmatter
| id | 7059 |
| title | Add support for "empty" vdom child nodes |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jul 15, 2025, 7:10 PM |
| updatedAt | Jul 15, 2025, 7:11 PM |
| githubUrl | https://github.com/neomjs/neo/issues/7059 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jul 15, 2025, 7:11 PM |
While this coding style works, I doubt that many devs will think about not polluting vdom with empty values.
}, isComposing ? { module : ComposeView, id : 'compose-view', onClose: onCloseCompose } : null].filter(Boolean)So, we should enable the following syntax:
}, isComposing && { module : ComposeView, id : 'compose-view', onClose: onCloseCompose }]nullorfalsevalues.vdom.Helperneeds a boolean filter to prevent these items to get into vnode trees.manager.Component#getVdomTree()must no longer transform these values into empty objects.