Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
docs(api): fix useAsyncData example (#4549)
Browse files Browse the repository at this point in the history
  • Loading branch information
klevron authored Apr 25, 2022
1 parent 41d5cbb commit e7bbf16
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/content/3.api/1.composables/use-async-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ By default, Nuxt waits until a `refresh` is finished before it can be executed a
## Example
```ts
const { data, pending, error, refresh } = useAsyncData(
const { data, pending, error, refresh } = await useAsyncData(
'mountains',
() => $fetch('https://api.nuxtjs.dev/mountains),
{
pick: ['title']
}
() => $fetch('https://api.nuxtjs.dev/mountains')
)
```

Expand Down

0 comments on commit e7bbf16

Please sign in to comment.