mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +00:00
docs: fix typo in useAsyncData
docs (#25644)
This commit is contained in:
parent
9af0e35ffc
commit
be8f99cbbe
@ -89,8 +89,8 @@ Read more about `$fetch`.
|
||||
The `useAsyncData` composable is responsible for wrapping async logic and returning the result once it is resolved.
|
||||
|
||||
::callout
|
||||
`useFetch(url)` is nearly equivalent to `useAsyncData(url, () => $fetch(url))` :br
|
||||
Iit's developer experience sugar for the most common use case.
|
||||
`useFetch(url)` is nearly equivalent to `useAsyncData(url, () => $fetch(url))`. :br
|
||||
It's developer experience sugar for the most common use case.
|
||||
::
|
||||
|
||||
There are some cases when using the [`useFetch`](/docs/api/composables/use-fetch) composable is not appropriate, for example when a CMS or a third-party provide their own query layer. In this case, you can use [`useAsyncData`](/docs/api/composables/use-async-data) to wrap your calls and still keep the benefits provided by the composable.
|
||||
|
Loading…
Reference in New Issue
Block a user