Skip to content

Commit

Permalink
docs: fix typo in useAsyncData docs (#25644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleroms committed Feb 5, 2024
1 parent 9af0e35 commit be8f99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/1.getting-started/6.data-fetching.md
Expand Up @@ -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.
Expand Down

0 comments on commit be8f99c

Please sign in to comment.