Skip to content

Commit

Permalink
docs: link to suspense (#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
manniL committed Apr 26, 2024
1 parent c42ab53 commit 15ada9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/sfc-script-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ const post = await fetch(`/api/post/1`).then((r) => r.json())
In addition, the awaited expression will be automatically compiled in a format that preserves the current component instance context after the `await`.

:::warning Note
`async setup()` must be used in combination with `Suspense`, which is currently still an experimental feature. We plan to finalize and document it in a future release - but if you are curious now, you can refer to its [tests](https://github.com/vuejs/core/blob/main/packages/runtime-core/__tests__/components/Suspense.spec.ts) to see how it works.
`async setup()` must be used in combination with [`Suspense`](/guide/built-ins/suspense.html), which is currently still an experimental feature. We plan to finalize and document it in a future release - but if you are curious now, you can refer to its [tests](https://github.com/vuejs/core/blob/main/packages/runtime-core/__tests__/components/Suspense.spec.ts) to see how it works.
:::

## Generics <sup class="vt-badge ts" /> {#generics}
Expand Down

0 comments on commit 15ada9d

Please sign in to comment.