SasanFarrokh / vue-slot-loader

A webpack loader to extend parent component slots
7 stars 1 forks source link

render async and string vnodes... #2

Open chumager opened 4 years ago

chumager commented 4 years ago

Hi, trying to work with your module I've been in some troubles...

First you can't pass a string (reactive or not), so it would be good to add an attribute to the slot to allows to wrap (or unwrap) the content so something like {{value}} could be parsed.

The other big problem for me is that I use to load my components async, so when the slot loads the content it shows nothing, any vNode or child who is async doesn't get rendered.

My FW is really big and dynamic so I don't know what it's going to be loaded inside the ccomponents.

Trying to research the way to solve it I realize the vNodes who are async components have an asyncFactory function and it suppose to be the function who has the component object to create a fresh one and hidrate the vNode, but haven't found how to do it.

Best Regards.