docs: add note about awaiting useLazyFetch (#30171)

This commit is contained in:
bjoaquinc 2024-12-06 15:43:52 -05:00 committed by Daniel Roe
parent 95e19be6b1
commit 105776eab3
No known key found for this signature in database
GPG Key ID: CBC814C393D93268

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