mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-18 06:31:27 +00:00
docs: remove mention of plugins from data fetching (#1925)
This commit is contained in:
parent
b69ebbbfd7
commit
33107d8b98
@ -8,7 +8,7 @@ Nuxt provides `useFetch`, `useLazyFetch`, `useAsyncData` and `useLazyAsyncData`
|
|||||||
|
|
||||||
## `useAsyncData`
|
## `useAsyncData`
|
||||||
|
|
||||||
Within your pages, components and plugins you can use `useAsyncData` to get access to data that resolves asynchronously.
|
Within your pages and components you can use `useAsyncData` to get access to data that resolves asynchronously.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ This composable behaves identically to `useAsyncData` with the `lazy: true` opti
|
|||||||
|
|
||||||
## `useFetch`
|
## `useFetch`
|
||||||
|
|
||||||
Within your pages, components and plugins you can use `useFetch` to get universally fetch from any URL.
|
Within your pages and components you can use `useFetch` to get universally fetch from any URL.
|
||||||
|
|
||||||
This composable provides a convenient wrapper around `useAsyncData` and `$fetch` and automatically generates a key based on url and fetch options and infers API response type.
|
This composable provides a convenient wrapper around `useAsyncData` and `$fetch` and automatically generates a key based on url and fetch options and infers API response type.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user