Skip to content

clear savedFocusedElement ptr to free up memory - #52

Merged
chiefcll merged 2 commits into
mainfrom
fixKeepAlive
Aug 12, 2026
Merged

clear savedFocusedElement ptr to free up memory#52
chiefcll merged 2 commits into
mainfrom
fixKeepAlive

Conversation

@chiefcll

Copy link
Copy Markdown
Contributor

No description provided.

chiefcll and others added 2 commits August 12, 2026 09:36
savedFocusedElement lived in a KeepAliveRoute closure that is retained
forever by keepAliveRouteCache, so a node captured on route exit stayed
reachable even after the route was disposed or cleared.

Move the pointer onto the KeepAliveElement record: dropping the entry
from keepAliveRouteElements now drops the saved node with it. Also clear
it once focus has been restored.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@chiefcll
chiefcll merged commit c8e6276 into main Aug 12, 2026
1 check passed
@chiefcll
chiefcll deleted the fixKeepAlive branch August 12, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant