docs: remove 'caching' section from data fetching

This commit is contained in:
Daniel Roe 2023-09-06 10:31:54 +01:00
parent 88a6d0a499
commit fe29948feb

View File

@ -29,10 +29,6 @@ The [`useFetch`](/docs/api/composables/use-fetch) and [`useAsyncData`](/docs/api
Use the [Nuxt DevTools](https://devtools.nuxtjs.org) to inspect this data in the payload tab.
::
### Effective caching
[`useFetch`](/docs/api/composables/use-fetch) and [`useAsyncData`](/docs/api/composables/use-async-data) both use a key to cache API responses and further reduce API calls. We will detail later how to invalidate this cache.
### Suspense
Nuxt uses Vues `<Suspense>` component under the hood to prevent navigation before every async data is available to the view. The data fetching composables can help you leverage this feature and use what suits best on a per-calls basis.