Skip to content

Remove shared sheet when no managed component#2873

Merged
lucafoscili merged 1 commit into
developfrom
feat/cleanup-stylesheet-cache
Jun 23, 2026
Merged

Remove shared sheet when no managed component#2873
lucafoscili merged 1 commit into
developfrom
feat/cleanup-stylesheet-cache

Conversation

@stefanolanari

Copy link
Copy Markdown
Collaborator

Add hasManagedComponentForTag to check if any managed component with the given tag is currently connected and using adoptedStyleSheetsTargets. When supportsConstructable is true, remove the tag's entry from sharedSheets after a component is detached if no other managed component remains. This cleans up unused constructable stylesheets for tags when the last managed component is disconnected.

Add hasManagedComponentForTag to check if any managed component with the given tag is currently connected and using adoptedStyleSheetsTargets. When supportsConstructable is true, remove the tag's entry from sharedSheets after a component is detached if no other managed component remains. This cleans up unused constructable stylesheets for tags when the last managed component is disconnected.
@lucafoscili lucafoscili merged commit ee35348 into develop Jun 23, 2026
1 check passed
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.

2 participants