Skip to content

Commit

Permalink
Update sfc-script-setup.md (#1345)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms authored and naokie committed Nov 26, 2021
1 parent 377634e commit 593dadf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/sfc-script-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ export default {
</script>
```

:::warning
`render` function is not supported in this scenario. Please use one normal `<script>` with `setup` option instead.
:::

## Top-level `await`

Top-level `await` can be used inside `<script setup>`. The resulting code will be compiled as `async setup()`:
Expand Down

0 comments on commit 593dadf

Please sign in to comment.