Use microtask to distinct element removing vs moving
jaandrle opened this issue · comments
Jan Andrle commented
Inspired by Vue: https://vuejs.org/guide/extras/web-components.html#building-custom-elements-with-vue.
queueMicrotask(() => {
if(element.isConnected) return;
…
});