Subscribe on changes!

Getting ref in <script setup> throws an error about dataOptions

avatar
Aug 21st 2022

Vue version

3.2.21

Link to minimal reproduction

https://stackblitz.com/edit/troisjs-vue-bug?file=src%2Fcomponents%2FBug.vue

Steps to reproduce

  • Create a template with renderless components, created with defineComponent
  • Add ref="myRef" to component in template
  • Add myRef = ref(null) in the