You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basic problem: Name collision in custom elements (LitElement) due to global registry @window level.
The CustomElementRegistry provides methods for registering custom elements. One of the limitations of working with this global registry is that multiple versions of the same element cannot co-exist.
Here we have two custom elements my-web-component but different versions are used in different extensions.
To Reproduce Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "my-web-component" has already been used with this registry.
The problem is that CustomElementRegistry is a global window object
Expected behavior
Whether single-spa can solve the basic problem of tag name conflict when multiple versions of the same custom elements are used in micro frontend UIs?
Regards
Basanth
The text was updated successfully, but these errors were encountered:
If CustomElements could be unregistered, it'd be implemented much the same was as single-spa-leaked-globals and would still have the limitation of allowing only a single instance of a component registered at a time.
Basic problem: Name collision in custom elements (LitElement) due to global registry @window level.
The CustomElementRegistry provides methods for registering custom elements. One of the limitations of working with this global registry is that multiple versions of the same element cannot co-exist.
Here we have two custom elements my-web-component but different versions are used in different extensions.
To Reproduce
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "my-web-component" has already been used with this registry.
The problem is that CustomElementRegistry is a global window object
window.customElements.define('my-web-component', MyWebComponent);
Expected behavior
Whether single-spa can solve the basic problem of tag name conflict when multiple versions of the same custom elements are used in micro frontend UIs?
Regards
Basanth
The text was updated successfully, but these errors were encountered: