docs: add note about awaiting useLazyFetch (#30171)

This commit is contained in:
bjoaquinc 2024-12-06 15:43:52 -05:00 committed by GitHub
parent 7166867735
commit 4bad11de52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,6 +16,10 @@ By default, [`useFetch`](/docs/api/composables/use-fetch) blocks navigation unti
`useLazyFetch` has the same signature as [`useFetch`](/docs/api/composables/use-fetch).
::
::note
Awaiting `useLazyFetch` in this mode only ensures the call is initialized. On client-side navigation, data may not be immediately available, and you should make sure to handle the pending state in your app.
::
:read-more{to="/docs/api/composables/use-fetch"}
## Example