Skip to content

Glossary: Vue.js

Suspense

Also written: <Suspense>

A Vue feature that lets components `await` during setup and shows a fallback while they wait. A top-level `await` in `<script setup>` without a `<Suspense>` boundary triggers a warning, so data is usually fetched in `onMounted` or a composable instead.

Where the book teaches it

Related terms

Async functiononMounted