jaandrle / deka-dom-el

A library expanding the capabilities of the native DOM API with the aim of offering the possibility of writing reactive UI templates/components declaratively directly in JavaScript.

Home Page:https://jaandrle.github.io/deka-dom-el/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use microtask to distinct element removing vs moving

jaandrle opened this issue · comments

Inspired by Vue: https://vuejs.org/guide/extras/web-components.html#building-custom-elements-with-vue.

queueMicrotask(() => {
	if(element.isConnected) return;
	
});