Re: [WICG/webcomponents] We need the ability to deregister or undefine custom elements. (Issue #970)

ability to de-register the custom element would allow to incrementally inherit currently registered element with own implementation which would use the original:
* `my-component` is served by `class MyComponent` 
* taking the class from registry
* register `my-component-internal` with `MyComponent`
* unregister `my-component` and register `class MyComponentFacade` to same tag
* use `my-component-internal` from overridden `my-component-internal`

there are zillions of use cases. From translation to analytics. Facade pattern is quite useful in general. Without unregistering the custom tag generic AOP approach would be difficult in Web Components world.


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

Message ID: <WICG/webcomponents/issues/970/1299582796@github.com>

Received on Wednesday, 2 November 2022 05:14:15 UTC