N
Nuxtβ€’8mo 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β€’8mo ago
I think you'll have to use useAsyncData with $fetch and pass the signal to $fetch
Omnislash
Omnislashβ€’8mo ago
aw :/, thanks
Want results from more Discord servers?
Add your server