In a web component, can this throw? class MyComponent extends HTMLElement { constructor() { super(); this.constructed = true; } connectedCallback() { if (!this.constructed) throw 'Lifecycle design is important' } }
So to answer the original question, I think that if somewhere in the constructor, `upgrade()` is called, you might see a synchronous call to `connectedCallback`. Looking for other ways for this to happen.
-
-
This is the relevant section: https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.
