diff --git a/lib/component.js b/lib/component.js index 2cae842c..088335a2 100644 --- a/lib/component.js +++ b/lib/component.js @@ -470,6 +470,8 @@ class Component extends WebComponent { } } + this.dispatchEvent(new CustomEvent(`preComponentInitialized`, {detail: {el: this}, bubbles: true, composed: true})); + this.domPatcher = new DOMPatcher(this.state, this._render.bind(this), { updateMode: this.getConfig(`updateSync`) ? `sync` : `async`, postRenderCallback: this.postRenderCallback, diff --git a/package.json b/package.json index 5cc3f468..31d7d61b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "panel", - "version": "6.1.2", + "version": "6.2.0", "description": "Web Components with Virtual DOM: lightweight composable web apps", "main": "build/index.js", "types": "lib/index.d.ts",