Skip to content

Commit 593dadf

Browse files
wxsmsnaokie
authored andcommitted
Update sfc-script-setup.md (#1345)
see vuejs/core#4980 (comment)
1 parent 377634e commit 593dadf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/sfc-script-setup.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ export default {
243243
</script>
244244
```
245245

246+
:::warning
247+
`render` function is not supported in this scenario. Please use one normal `<script>` with `setup` option instead.
248+
:::
249+
246250
## Top-level `await`
247251

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

0 commit comments

Comments
 (0)