Re: [w3c/webcomponents] Disconnected Events (#678)

> Given `disconnectedCallback` is already there, wouldn't this just be some sugar? Or are you suggesting to get rid of `disconnectedCallback`?

`disconnectedCallback` happens as a [custom element reactions](https://html.spec.whatwg.org/multipage/custom-elements.html#custom-element-reactions). We shouldn't fire events at this timing since that results in multiple listeners racing to undo one another's changes. At the earlier we could fire would be the end of the micro-task timing which would be much later than when `disconnectedCallback` happens.

-- 
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/678#issuecomment-340889011

Received on Tuesday, 31 October 2017 20:00:19 UTC