Re: [w3c/webcomponents] JavaScript bundlers, HMR and customElements.define() (#829)

Thinking about stuff like `ReflowStrategy.RERENDER_INNER_HTML` from `custom-elements-hmr-polyfill`, `disconnectedCallback` on downgrade `constructor`/`connectedCallback` on upgrade would have that handled.

The reference to the DOM element that got downgraded then re-upgrade would remain the same, and in theory this should keep parent state in tact (f.e. a parent element could stick children into the element that got redefined, and those children would remain as children of the redefined element, and the redefined element could re-handle the children on upgrade like it did before).

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

Received on Saturday, 30 November 2019 18:00:53 UTC