Re: [WICG/webcomponents] Cleaning up (undefining) custom elements? (#754)

Came across this while looking for a way to resolve the error: 
````
Uncaught DOMException: Failed to execute 'define' on 'CustomElementRegistry': the name "..." has already been used with this registry
````

![image](https://user-images.githubusercontent.com/4610831/108443014-09c0ad00-727e-11eb-92ac-8fb1da92caf3.png)

In an SPA components get loaded and unloaded all the time. It is very surprising that this `CustomElementRegistry` is a one way call with no way to `undefine` or `unRegister` a component when needed.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/754#issuecomment-781748340

Received on Friday, 19 February 2021 01:23:10 UTC