Quentin
Explore posts from serversuseFetch update my data without assignment
Hi guys,
I must have missed something, but I found something weird using useFetch.
It looks like there's a kind of link between requests on the same URL.
Here's my code for an example:
On the first load, my page shows
Test: { "test": "get" }
, that is what I wanted to do, fine.
But when I click on the button, the page shows Test: { "test": "post" }
and I don't understand why.
I expected to see Test: { "test": "get" }
again, as I didn't change the test
variable by myself.
Any idea?
Thanks4 replies
Nuxt3 : Redirect in script setup
Hi guys,
I'm requesting my API in my setup, and i want to redirect to a page and stop the rest of the setup when it returns me an error.
I'm using navigateTo, it's working but the console shows me errors of undefined properties on the variable i set with my API response
7 replies