diff --git a/docs/content/2.guide/2.features/5.data-fetching.md b/docs/content/2.guide/2.features/5.data-fetching.md index 20d8a8bec8..96b7f4354c 100644 --- a/docs/content/2.guide/2.features/5.data-fetching.md +++ b/docs/content/2.guide/2.features/5.data-fetching.md @@ -182,7 +182,7 @@ The example below adds the request headers to an isomorphic `fetch` call to ensu ```vue diff --git a/docs/content/3.api/1.composables/use-fetch.md b/docs/content/3.api/1.composables/use-fetch.md index 0fe4e7ba7d..cb80894087 100644 --- a/docs/content/3.api/1.composables/use-fetch.md +++ b/docs/content/3.api/1.composables/use-fetch.md @@ -57,7 +57,7 @@ By default, Nuxt waits until a `refresh` is finished before it can be executed a ## Example ```ts -const { data, pending, error, refresh } = useFetch( +const { data, pending, error, refresh } = await useFetch( 'https://api.nuxtjs.dev/mountains', { pick: ['title'] diff --git a/docs/content/3.api/1.composables/use-route.md b/docs/content/3.api/1.composables/use-route.md index d1e47d20f7..719a67c341 100644 --- a/docs/content/3.api/1.composables/use-route.md +++ b/docs/content/3.api/1.composables/use-route.md @@ -6,7 +6,7 @@ Within the template of a Vue component, you can access the route using `$route`. ## Example -In the following example, we call an API via `useAsyncData` using a dynamic page parameter - `slug` - as part of the URL. +In the following example, we call an API via `useFetch` using a dynamic page parameter - `slug` - as part of the URL. ```html [~/pages/[slug].vue]