mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: fix small typo (#4043)
This commit is contained in:
parent
89055f80ee
commit
7dfe800a52
@ -54,7 +54,7 @@ With Nuxt 3, you can perform this data fetching using composables in your `setup
|
||||
You can now use `post` inside of your Nuxt 3 template, or call `refresh` to update the data.
|
||||
|
||||
::alert{type=info}
|
||||
Despite the names, `useFetch` is not a direct replacement of the `fetch()` hook. Rather, `useAsyncData` replaces both hooks and is most customizable; it can do more than simply fetching data from an endpoint. `useFetch` is a convenience wrapper around `useAsyncData` for simply fetching data fromn an endpoint.
|
||||
Despite the names, `useFetch` is not a direct replacement of the `fetch()` hook. Rather, `useAsyncData` replaces both hooks and is most customizable; it can do more than simply fetching data from an endpoint. `useFetch` is a convenience wrapper around `useAsyncData` for simply fetching data from an endpoint.
|
||||
::
|
||||
|
||||
### Migration
|
||||
|
Loading…
Reference in New Issue
Block a user