In Vue 2 I had a custom routing solution that involved in some cases handing in components as props.
<template>
<div>
<component :is="component" :data="componentData"/>
</div>
</template>
<script>
export default {
props: {
component: {}
componentData: {}
}
}
</script>
In vue 3 this gives the warning: "Vue received a Component which was made a reactive".
Is there a way of avoiding this warning? Is it possible to dynamically add components to a component?
If you have an array of components that is not globally registered in App.components is it possible to render them without warnings?
Here is an older question about this in Vue2: Is it possible to pass a component as props and use it in a child Component in Vue?
Note the above code works fine in Vue2, this question is specifically about Vue3.