Quentin
Quentin
Explore posts from servers
NNuxt
Created by Quentin on 9/4/2024 in #❓・help
Dependencies optimizations in dev mode
No description
2 replies
NNuxt
Created by Quentin on 8/1/2023 in #❓・help
useFetch update my data without assignment
Ok I wanted to factorize all my API calls into a custom plugin to add them some options. But I assume that I just have to make a .get() function using useFetch, and post, put etc using $fetch ?
4 replies
NNuxt
Created by Quentin on 6/23/2023 in #❓・help
Nuxt3 : Redirect in script setup
Up ?
7 replies
NNuxt
Created by Quentin on 6/23/2023 in #❓・help
Nuxt3 : Redirect in script setup
It's not working. I just tried to put await navigateTo(...); outside any function, just bellow my useFetch, and it's still the same issue, my data is null and so all the code bellow using this is in error
7 replies
NNuxt
Created by Quentin on 6/23/2023 in #❓・help
Nuxt3 : Redirect in script setup
Ok, but when i do this, it's the same result. How can i do to redirect and abort the end of the setup ?
const {data} = awaitUseFetch(
...
);

if (! data.value) {
navigateTo(...)
}

const myVar = ...
const {data} = awaitUseFetch(
...
);

if (! data.value) {
navigateTo(...)
}

const myVar = ...
7 replies