Subscribe on changes!

When I create a component using the `setup` syntax sugar, I can't get the instance of the current component

avatar
Dec 29th 2021

Version

3.2.26

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Im sorry, SFC Playground doesn't has console. You can open this code in your browser,.

  1. set ref to <Comp ref="compRef" /> and <SetupComp ref="setupCompRef" />
  2. open console, compRef has value, but SetupComp doesn't

So why?

What is expected?

compRef has value, SetupComp also has value

What is actually happening?

compRef has value, but SetupComp doesn't


By the way, when I tried to debug in the browser after writing code using the setup syntax sugar, I found myself in hell. my god