<Suspense> एक built-in component हो जो आफ्नो component tree मा async dependencies को समन्वय गर्छ — यसले सबै nested async operations resolve नभेँदा सम्म एक fallback (loading UI) देखाउँछ, त्यसपछी वास्तविक सामग्री प्रदर्शन गर्छ। यसले manual isLoading boilerplate हटाउँछ।
दुई slots
<template>
<Suspense>
<template #default>
<UserDashboard /> <!-- a component with async setup -->
</template>
<template #fallback>
<LoadingSpinner /> <!-- shown while #default is resolving -->
</template>
</Suspense>
</template>
