mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
docs: add note about awaiting useLazyFetch
(#30171)
This commit is contained in:
parent
7166867735
commit
4bad11de52
@ -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).
|
`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"}
|
:read-more{to="/docs/api/composables/use-fetch"}
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
Loading…
Reference in New Issue
Block a user