Allow custom element definition to be 'changed' #10063
Labels
addition/proposal
New features or enhancements
needs implementer interest
Moving the issue forward requires implementers to express interest
topic: custom elements
Relates to custom elements (as defined in DOM and HTML)
What problem are you trying to solve?
Over in frameworks land, hot module replacement allows development servers to seemingly apply changes made in the editor directly onto the the active page, without a refresh, and without losing current state.
This is impossible with web components, because once a component is defined, it's forever-defined. In particular, things like
observedAttributes
cannot be changed.What solutions exist today?
https://open-wc.org/docs/development/hot-module-replacement/, but it notes the following limitations:
How would you solve it?
Being able to programatically 'undefine' a custom element, allowing it to be re-defined with a new class, would solve the limitations encountered by open-wc.
Anything else?
No response
The text was updated successfully, but these errors were encountered: