Re: [WICG/webcomponents] Updating Element Registration. (#820)

Support for redefine will make hot replacement easy to implement.

```
class MyElement extends HTMLElement {}
customElements.define('my-element', MyElement);

...
if (customElements.define('my-element')) {
  customElements.redefine('my-element', MyElement2);
  customElements.upgrade(document.documentElement);
}
```


-- 
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/820#issuecomment-731770341

Received on Sunday, 22 November 2020 16:08:45 UTC