Skip to content

Commit

Permalink
Merge pull request #688 from carvinlo/patch-3
Browse files Browse the repository at this point in the history
Register component before mounting
  • Loading branch information
FlorianRappl authored Apr 15, 2024
2 parents 2ad333e + 61f3d81 commit 882a018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/piral-vue-3/src/converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export function createConverter(config: Vue3ConverterOptions = {}) {
mount(parent, data, ctx, locals: Vue3State) {
const el = parent.appendChild(document.createElement(rootName));
const app = mountVue(root, data, ctx, captured);
app.mount(el);
app.component(selector, createExtension(rootName));
app.mount(el);
!app._props && (app._props = {});
locals.instance = app;
},
Expand Down

0 comments on commit 882a018

Please sign in to comment.