From 0d6c03c83ff36a3afe350ec91e6d6396bb3aa012 Mon Sep 17 00:00:00 2001 From: Salim Absi Date: Thu, 5 May 2022 18:30:41 +0300 Subject: [PATCH 1/3] fix(example): replace useAsyncData with useFetch --- docs/content/2.guide/2.features/5.data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c92d9fa0e44..d1f86bb5de1 100644 --- a/docs/content/2.guide/2.features/5.data-fetching.md +++ b/docs/content/2.guide/2.features/5.data-fetching.md @@ -118,7 +118,7 @@ watch(posts, (newPosts) => { Sometimes throughout the course of your user's page visit, you may need to refresh the data loaded from the API. This can happen if the user chooses to paginate, filter results, search, etc. -You can make use of the `refresh()` method returned from the `useAsyncData()` composable to refresh the data with different query parameters: +You can make use of the `refresh()` method returned from the `useFetch()` composable to refresh the data with different query parameters: ```vue