Is comhpháirt ionsuite é <Suspense> a chomhordaíonn spréachuis acomóide ina spré chomhpháirte — taispeáineann sé fallback (UI ualaigh) go dtí go réitítear gach oibríocht acomóide neadaithe, ansin taispeáineann sé an t-ábhar fíor. Baintear an boilerplate isLoading láimhe uaidh.
Cén fáth a bhfuil sé tábhachtach
<template>
<Suspense>
<template #default>
<UserDashboard /> <!-- a component with async setup -->
</template>
<template #fallback>
<LoadingSpinner /> <!-- shown while #default is resolving -->
</template>
</Suspense>
</template>
