Frontmatter
| id | 5730 |
| title | code.LivePreview: Navigating to the source view should destroy the app, in case the preview view is not popped out |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Aug 10, 2024, 1:47 AM |
| updatedAt | Aug 10, 2024, 1:47 AM |
| githubUrl | https://github.com/neomjs/neo/issues/5730 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Aug 10, 2024, 1:47 AM |
@maxrahder @mxmrtns @rwaters
the logic so far was that navigating to the preview tab will destroy any existing content and then create the new one.
an example where this is a problem is the colors dashboard app: if we activate the 60 FPS socket connection and then switch back to the code view, the socket keeps pulling in more messages infinitely, until navigating to the preview view again.
to save memory & performance, we need to destroy any content when navigating back to the source view.