NuxtN
Nuxt2y ago
monlasan

Error Handling with useFetch and useAsyncData working only once

how do i handle errors with useFetch and useAsyncData? i can use the error ref returned, that works at first. But when i launch the refresh(), the if(error.value) condition is no longer launched. Basically, it's only on the first error that this condition is thrown.
Was this page helpful?