Subscribe on changes!

在build环境中读取suspense下的子组件defineExpose暴露的属性读到的值是undefined dev下却可以读取到正常的值

avatar
Jan 17th 2022

Version

3.2.27

Reproduction link

sfc.vuejs.org/

Steps to reproduce

使用包裹子组件,子组件的setup方法中在defineExpose前await异步函数

What is expected?

应当读取到子组件暴露的值

What is actually happening?

读取到了undefined

avatar
Jan 17th 2022

duplicate of #4930