Skip to content

[labs/context] ContextRoot will duplicate tracking a context-requesting component which is connected multiple times #2765

@benjamind

Description

@benjamind

Description

ContextRoot will track a context-requesting element (that is not getting a satisfied context-request) multiple times if that element is connected/disconnected within the document multiple times. This isn't a major issue in that it only results in a slight performance degradation when that context is ready to be provided in future (since it will receive the context multiple times). But this could be worth addressing if a context-requesting element is frequently added/removed from the DOM without having a satisfying context provider.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions