Execute a useFetch 2 times
With the debugger, I realized that once refresh is executed in my status 200 if, the function restarts at console.log(response) and returns a success and then an error (so I enter my onResponse twice).
6 Replies
Up !
what is your refresh() function?
why are you calling refresh() within the useFetch?
can you replicate the error here: https://stackblitz.com/
Julien Pavoni
StackBlitz
Nuxt - Starter (forked) - StackBlitz
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
It's a mess the code may be but I'm learning