Frontmatter
| id | 6132 |
| title | Covid.view.MainContainerController: applySummaryData() => vdom access |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Nov 29, 2024, 3:49 PM |
| updatedAt | Nov 29, 2024, 4:08 PM |
| githubUrl | https://github.com/neomjs/neo/issues/6132 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Nov 29, 2024, 4:08 PM |
applySummaryData(data) { let me = this, container = me.getReference('total-stats'), {vdom} = container; me.summaryData = data; vdom.cn[0].cn[1].html = Util.formatNumber({value: data.cases}); vdom.cn[1].cn[1].html = Util.formatNumber({value: data.active}); vdom.cn[2].cn[1].html = Util.formatNumber({value: data.recovered}); vdom.cn[3].cn[1].html = Util.formatNumber({value: data.deaths}); container.update(); // ... }this logic can no longer work in neo v8 => vdom.cn[0] => {componentId: 'neo-component-2'}
we either need to aggregate the vdom tree or access the child cmps directly to update in parallel.