using ref alongside conditional rendering (useTemplateRef + v-if)
Hi, in my situation I have some component that will be rendered conditionally. I also need to assign the
useTemplateRef() for each one of them that I will be calling functions exported using defineExpose(). The problem is that useTemplateRef or ref can not be assigned to the component if the component is not rendered at first. One solution is to use v-show but that doesn't really satisfy me and I don't want the other components shown in devtools.