加上顶层await,页面渲染不出来
Version
3.2.26
Reproduction link
Steps to reproduce
1.使用script setup 语法糖 2.使用顶层 await 获取数据 3.将数据渲染到template 4.页面空白,未发现错误
What is expected?
页面可以正常渲染,或者报错
What is actually happening?
runtime-core.esm-bundler.js?5c40:6620 [Vue warn]: Unhandled error during execution of scheduler flush. This is likely a Vue internals bug.
You need to use <Suspense>
as a parent component of the ones using await
in setup
Please, next time consider using the forum, the Discord server or StackOverflow for questions first. But feel free to come back and open an issue if it turns out to be a bug 🙂