Closed
Description
Vue version
3.0+
Link to minimal reproduction
Steps to reproduce
when i use component to render async component, like this
//setup const tab = ref('1') /* // map like this const map = { 1: defineAysncComponent(...), 2: .... } */ //template // fallback just show once <Suspense > <component :is="map[tab]" :key="tab" /> <template #fallback>loading.......</template> </Suspense> but this can be work <Suspense v-if="show"> <component :is="map[tab]" :key="tab" /> <template #fallback>loading.......</template> </Suspense>
What is expected?
don't need v-if
What is actually happening?
.
System Info
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels