Frontmatter
| id | 6372 |
| title | Portal.view.learn: moving a live preview into a popup sometimes renders the cmp into the same window again |
| state | Closed |
| labels | bug |
| assignees | tobiu |
| createdAt | Feb 3, 2025, 11:51 PM |
| updatedAt | Feb 3, 2025, 11:52 PM |
| githubUrl | https://github.com/neomjs/neo/issues/6372 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Feb 3, 2025, 11:52 PM |
This is a funny one. first thought was it is related to the vdom update changes. it is not.
component.Base:render()will check for non-loaded theme files. in this case, the mounting will get delayed untilthemeFilesLoadedtriggers. This can happen at any arbitrary point and by then parent containers have already taken care of this part.Long story short: when the callback gets triggered, we need to check if the cmp is already mounted.