Frontmatter
| id | 5957 |
| title | container.Base: afterSetLayout() => always destroy an old layout |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Sep 21, 2024, 10:18 PM |
| updatedAt | Sep 21, 2024, 10:24 PM |
| githubUrl | https://github.com/neomjs/neo/issues/5957 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Sep 21, 2024, 10:24 PM |
container.Base: afterSetLayout() => always destroy an old layout
tobiu assigned to @tobiu on Sep 21, 2024, 10:18 PM
tobiu closed this issue on Sep 21, 2024, 10:19 PM

tobiu
Sep 21, 2024, 10:23 PM
ha, forgot one edge case: an old layout could still be a config object, so at this point it would not have a destroy() method (and we don't need to adjust things).
tobiu reopened this issue on Sep 21, 2024, 10:23 PM
tobiu closed this issue on Sep 21, 2024, 10:24 PM
currently, the
destroy()call happens inside theme.renderedcheck, which does not cover all edge-cases.