Why did I get blank (empty) content when I used async setup() in Vue.js 3?
Your component’s async setup() looks fine other than the missing await res.json(), which still wouldn’t cause the problem you’re seeing. I suspect your usage of <Suspense> is incorrect. To use async setup() in a component, the parent component must use that component in a <Suspense> tag: <!– Parent.vue –> <template> <Suspense> <MyAsyncComponent /> </Suspense> </template> … Read more