N
Nuxt2y ago
less

pending in useFetch vs useLazyFetch

Hello, im quite new to nuxt ( < 1 Year developing with nuxt ) , i have a question what is the difference between pending in useFetch vs useLazyFetch since both of them have the pending return value
2 Replies
warflash
warflash2y ago
👋 useFetch blocks navigation whereas for lazyFetch you want to provide your own loading state handler
warflash
warflash2y ago
Nuxt
useLazyFetch · Nuxt Composables
This wrapper around useFetch triggers navigation immediately.
Want results from more Discord servers?
Add your server