Subscribe on changes!

template ref of components created with script setup are empty objects

avatar
Feb 12th 2021

Version

3.0.5

Reproduction link

https://github.com/schelmo/vue3-ref-script-setup

Steps to reproduce

clone the repo
yarn install
yarn vite
open browser and console

What is expected?

the ref value (in HelloWorld.vue) should get the component instance assigned

What is actually happening?

an empty object is assigned