Skip to content

Commit

Permalink
add pre initialize hook
Browse files Browse the repository at this point in the history
  • Loading branch information
micaww committed Feb 13, 2024
1 parent 155ce3a commit 61f2639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,8 @@ class Component extends WebComponent {
}
}

this.dispatchEvent(new CustomEvent(`preComponentInitialized`));

this.domPatcher = new DOMPatcher(this.state, this._render.bind(this), {
updateMode: this.getConfig(`updateSync`) ? `sync` : `async`,
postRenderCallback: this.postRenderCallback,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 61f2639

Please sign in to comment.