Closed gullerya closed 2 years ago
This isn't something we want to include in the core library, but you should feel free to create your own decorators for these types of use cases. Please open a new issue if you need guidance on how to proceed. Thanks!
Description
customElement
decorator to behave in somewhat-idempotent fashion: define an element only if there is no such an element defined in the registrymy-component
twice won't throwAcceptance criteria
Defining the component named
my-component
twice won't throwTLDR;
The below assumptions are leading to an issue with current, strict,
customElement
decorator behavior:Downsides (tolarable from our POV, but probably require attention from your side as a platform):
If the non-deterministic downside is a major concern, the decorator may: