When having a construct like this for a component, I get the following error due to the reason that the funcational component returns actually two elements.
<template>
<no-ssr>
lalala
</no-ssr>
</template>
Error I get: [Vue warn]: Multiple root nodes returned from render function. Render function should return a single root node.
I guess it has somethign todo with the return value of the render function:
return h(
props.placeholderTag,
{
class: ['no-ssr-placeholder']
},
props.placeholder || placeholderSlot
)
How can I ensure that in this case there is actually only one element returned (I don't need a placeholder)
Thanks
Simon
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too