← All notes

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

Sources

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

Permanent ID: iil:note:7x9an46b

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.},
}

Markdown

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.