mantou132 / gem

💎 Lightweight WebApp development library using custom elements
https://gemjs.org
MIT License
19 stars 2 forks source link

[gem] Change `mounted` exec order by `addMicrotaskToStack` #192

Closed mantou132 closed 2 months ago

mantou132 commented 3 months ago

let microtaskStack

break element?

react order:

children mounted
parent mounted
children updated
parent updated
parent unmounted
children unmounted
mantou132 commented 2 months ago

addMicrotaskToStack 不能避免兄弟元素的执行顺序