Infra: Provide solution for duplicate component registration #3
Labels
BREAKING
feature request
infrastructure
status/has ticket
This issue will be addressed by the maintainers
Milestone
The problem
Right now Pharos requires using its own
@customElement
decorator to ensure no runtime errors when a component is registered multiple times. This doesn't cover third-party components we make use of, and doesn't provide deterministic behavior if two differing versions of the component try to register (the first one wins).The solution
Use the scoped element mixin to provide an axis of freedom in registering components under another name.
Alternatives considered
In the long term scoped custom element registration will help solve this issue natively.
The text was updated successfully, but these errors were encountered: