Show Vue fallback content with Suspense while async setup() children resolve
Answer: <Suspense> shows #fallback content during the pending state, then the default slot once async dependencies have been resolved. It is an experimental feature, not guaranteed to reach stable status, and the API may change.
Pending and fallback
A child can be a component with async setup(). Fallback content is displayed in the pending state. The default content appears after all encountered async dependencies have been resolved. The fallback is the #fallback slot. The immediate child node in the default slot is shown if possible.
On a revert, fallback content will not be immediately displayed. A timeout of 0 displays fallback content at once when default content is replaced.
Nesting
Suspense may render an empty node until an inner child has been resolved, instead of the previous one or the fallback slot. A nested suspense can handle the patch for the nested component, with its own fallback slot.
Experimental
The feature is experimental. The API may change before it reaches stable status.
See also
Claims
- id: C1 claim: Suspense is experimental and its API may still change. source: S1 evidence: "It is not guaranteed to reach stable status"
- id: C2 claim: The fallback slot is shown until async dependencies resolve. source: S1 evidence: "During the pending state, the fallback content will be displayed"
- id: C3 claim: A timeout of 0 shows fallback as soon as default content is replaced. source: S2 evidence: "A
timeoutvalue of0will cause the fallback content to be displayed immediately"
Sources
- [S1] Suspense. Vue.js docs. https://vuejs.org/guide/built-ins/suspense.html . License: CC-BY-4.0. Accessed 2026-11-19.
- [S2] Suspense.ts. Vue.js core source. https://raw.githubusercontent.com/vuejs/core/main/packages/runtime-core/src/components/Suspense.ts . License: MIT. Accessed 2026-11-19.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Vue.js docs, Suspense; Vue.js core source, Suspense.ts. CC-BY-4.0; MIT. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Vue.js docs, Suspense; Vue.js core source, Suspense.ts. CC-BY-4.0; MIT.
Cite this
iinventedlight. 2026. "Show Vue fallback content with Suspense while async setup() children resolve." iinventedlight Library, iil:note:7x9an46b, version of 2026-11-19. https://iinventedlight.com/library/notes/vue-suspense/. License: CC-BY-4.0.
@misc{iil_note_7x9an46b,
author = {{iinventedlight}},
title = {{Show Vue fallback content with Suspense while async setup() children resolve}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-19},
url = {https://iinventedlight.com/library/notes/vue-suspense/},
note = {Permanent ID iil:note:7x9an46b. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/vue-suspense.md.