LearnNewsExamplesServices
Frontmatter
id5730
titlecode.LivePreview: Navigating to the source view should destroy the app, in case the preview view is not popped out
stateClosed
labels
enhancement
assigneestobiu
createdAtAug 10, 2024, 1:47 AM
updatedAtAug 10, 2024, 1:47 AM
githubUrlhttps://github.com/neomjs/neo/issues/5730
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 10, 2024, 1:47 AM

code.LivePreview: Navigating to the source view should destroy the app, in case the preview view is not popped out

Closed v8.1.0 enhancement
tobiu
tobiu commented on 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.

tobiu added the enhancement label on Aug 10, 2024, 1:47 AM
tobiu assigned to @tobiu on Aug 10, 2024, 1:47 AM
tobiu referenced in commit 962defa - "code.LivePreview: Navigating to the source view should destroy the app, in case the preview view is not popped out #5730" on Aug 10, 2024, 1:47 AM
tobiu closed this issue on Aug 10, 2024, 1:47 AM