diff --git a/main.js b/main.js index 48cbd6f..1c59d8a 100644 --- a/main.js +++ b/main.js @@ -103,7 +103,8 @@ export class Component extends HTMLElement{ return []; } async connectedCallback(){ - this.dispatcher('init'); + await this.dispatcher('init'); + if(this.afterFirstUpdate) this.afterFirstUpdate(); } setContext(template) { const walker = document.createTreeWalker(template);