docs: add emphasis to useAsyncData explanation (#25392)

This commit is contained in:
Shay 2024-01-23 22:42:05 +07:00 committed by GitHub
parent 7e375b5ed8
commit ae8bbe0b04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ links:
Within your pages, components, and plugins you can use useAsyncData to get access to data that resolves asynchronously. Within your pages, components, and plugins you can use useAsyncData to get access to data that resolves asynchronously.
::callout ::callout
[`useAsyncData`](/docs/api/composables/use-async-data) is a composable meant to be called directly in a setup function, plugin, or route middleware. It returns reactive composables and handles adding responses to the Nuxt payload so they can be passed from server to client without re-fetching the data on client side when the page hydrates. [`useAsyncData`](/docs/api/composables/use-async-data) is a composable meant to be called directly in a setup function, plugin, or route middleware. It returns reactive composables and handles adding responses to the Nuxt payload so they can be passed from server to client **without re-fetching the data on client side** when the page hydrates.
:: ::
## Usage ## Usage