Skip to content

Commit 86fa0c8

Browse files
pierredupweaverryan
authored andcommitted
Add Vue app to the vue:mount event
1 parent dd07ad6 commit 86fa0c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Vue/Resources/assets/src/render_controller.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ export default class extends Controller {
3535
if (this.element.__vue_app__ !== undefined) {
3636
this.element.__vue_app__.unmount();
3737
}
38+
39+
this._dispatchEvent('vue:before-mount', {
40+
componentName: this.componentValue,
41+
component: component,
42+
props: this.props,
43+
app: this.app,
44+
});
3845

3946
this.app.mount(this.element);
4047

0 commit comments

Comments
 (0)