Skip to content

Commit

Permalink
docs: link to suspense (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
WGGSH committed Apr 29, 2024
1 parent 123351a commit 83e2e97
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 @@ -434,7 +434,7 @@ const post = await fetch(`/api/post/1`).then((r) => r.json())
さらに、await の対象の式は、`await` 後の現在のコンポーネントのインスタンスのコンテキストを保持する形式で自動的にコンパイルされます。

:::warning Note
`async setup()` は、現在まだ実験的な機能である `Suspense` と組み合わせて使用する必要があります。将来のリリースで完成させてドキュメント化する予定ですが、もし今興味があるのであれば、その[テスト](https://github.com/vuejs/core/blob/main/packages/runtime-core/__tests__/components/Suspense.spec.ts)を参照することで、どのように動作するかを確認できます。
`async setup()` は、現在まだ実験的な機能である [`Suspense`](/guide/built-ins/suspense.html) と組み合わせて使用する必要があります。将来のリリースで完成させてドキュメント化する予定ですが、もし今興味があるのであれば、その[テスト](https://github.com/vuejs/core/blob/main/packages/runtime-core/__tests__/components/Suspense.spec.ts)を参照することで、どのように動作するかを確認できます。
:::

### ジェネリクス <sup class="vt-badge ts" /> {#generics}
Expand Down

0 comments on commit 83e2e97

Please sign in to comment.