Subscribe on changes!

Await in script setup prevents component to show up

avatar
Dec 12th 2020

Version

3.0.4

Reproduction link

https://github.com/kadiryazici/vue3-youtube-tutorial

Steps to reproduce

in App.vue there is await maPromise function. If you comment it IconVue component shows up but if you uncomment it vue waits for process to be done and doensn't show IconVue component.

What is expected?

IconVue component to show up on page.

What is actually happening?

IconVue component is missing.

avatar
Dec 13th 2020

In order to use async setup, you need to use <Suspense>


Remember to use the forum or the Discord chat to ask questions!

avatar
Dec 13th 2020

I already tried Suspense tho and didn't work

avatar
Dec 29th 2020

i have same problem

avatar
Mar 15th 2021

Left async setup without awaiting anything inside and my components didn't appear at all. It would be nice to have at least a warning about the async setup or error.