N
Nuxtβ€’10mo ago
Omnislash

Manually cancel useFetch

Hello all πŸ™‚ Is it possible to cancel a useFetch, if for exemple the user leaves the page before the call is finished ? I saw how to send a signal with $fetch but nothing with useFetch. Thanks ^^
2 Replies
Muhammad Mahmoud
Muhammad Mahmoudβ€’10mo ago
I think you'll have to use useAsyncData with $fetch and pass the signal to $fetch
Omnislash
OmnislashOPβ€’10mo ago
aw :/, thanks
Want results from more Discord servers?
Add your server