Skip to content

Dispose tabs on Select transition#12

Merged
pcj merged 1 commit intomasterfrom
fix/cleanup
May 5, 2026
Merged

Dispose tabs on Select transition#12
pcj merged 1 commit intomasterfrom
fix/cleanup

Conversation

@pcj
Copy link
Copy Markdown
Member

@pcj pcj commented May 5, 2026

Select.hideCurrent now removes the outgoing tab from the DOM and disposes its component (firing exitDocument and disposeInternal), instead of just calling .hide() and leaving an inactive but live component in the document. This fixes unbounded DOM growth in long-running SPA sessions where users browse hundreds of routes and every previously-visited tab stays cached in the parent's content element with display:none.

Select.hideCurrent now removes the outgoing tab from the DOM and
disposes its component (firing exitDocument and disposeInternal),
instead of just calling .hide() and leaving an inactive but live
component in the document. This fixes unbounded DOM growth in
long-running SPA sessions where users browse hundreds of routes
and every previously-visited tab stays cached in the parent's
content element with display:none.
@pcj pcj merged commit 356314a into master May 5, 2026
1 check passed
@pcj pcj deleted the fix/cleanup branch May 5, 2026 21:18
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