alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 72 forks source link

Components get created twice inside template #42

Open AndrejHafner opened 5 years ago

AndrejHafner commented 5 years ago

Hello!

I'm having a problem with the v-runtime-template. Everytime a template gets inserted and rendered, it renders all the components inside it twice. I checked it with outputing the _uid of the component in the created() function and I two different instances of the component.

It's a problem for us, since some of the components that are inside the template are making REST request to the API, and we don't want to double the amount of them.

Any help or suggestions would be great!

Thanks!

alexjoverm commented 5 years ago

Hi @AndrejHafner, I'd need a reproduction repo/codesandbox in order to check it :)