Frontmatter
| id | 8072 |
| title | Enhance LivePreview: Add destroy logic and rename connection handlers |
| state | Closed |
| labels | enhancementairefactoring |
| assignees | tobiu |
| createdAt | Dec 9, 2025, 5:44 PM |
| updatedAt | Dec 9, 2025, 6:03 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8072 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Dec 9, 2025, 6:03 PM |
This ticket covers two improvements for
Neo.code.LivePreview:Clean up on destroy: When a
LivePreviewinstance is destroyed, it should ensure its associated pop-out window is closed.destroy()method.Neo.Main.windowClose({names: [this.id]})to close the specific window associated with this instance.Rename connection handlers: To improve clarity regarding the data source (window vs app), rename the worker connection listeners:
onAppConnect->onWindowConnectonAppDisconnect->onWindowDisconnectappNameandwindowId, but sinceappNameis not unique across tabs,windowIdis the key identifier. Renaming reflects this focus.