Ulrich
Ulrich
NNuxt
Created by Ulrich on 11/14/2024 in #❓・help
Reactivity with UseFetch
Thanks you for your help 🙏
9 replies
NNuxt
Created by Ulrich on 11/14/2024 in #❓・help
Reactivity with UseFetch
i used another way to solve my problem
9 replies
NNuxt
Created by Ulrich on 11/14/2024 in #❓・help
Reactivity with UseFetch
That's what i done, but i want to send each key in params, when i destructure the computed object, it loose reactivity, how can i send each key seperately in request body without loosing reactivity ?
const filterOptions = reactive({
typeAnnonce: "location",
typeBien: "",
lieu: "",
price: 0
})

// console.log({util})
const filteredOptions = computed(() => {
return Object.fromEntries(
Object.entries(filterOptions).filter(([key, value]) => {
return !(util.isString(value) && value === "");
}))
});

const {data: annoncesData, status} = await useApi("/annonces/allPublic", {
params: {
...filteredOptions,
limit: 9,
page: page
},
transform: data => {
return data.data
},
})
const filterOptions = reactive({
typeAnnonce: "location",
typeBien: "",
lieu: "",
price: 0
})

// console.log({util})
const filteredOptions = computed(() => {
return Object.fromEntries(
Object.entries(filterOptions).filter(([key, value]) => {
return !(util.isString(value) && value === "");
}))
});

const {data: annoncesData, status} = await useApi("/annonces/allPublic", {
params: {
...filteredOptions,
limit: 9,
page: page
},
transform: data => {
return data.data
},
})
9 replies
NNuxt
Created by Ulrich on 11/14/2024 in #❓・help
Reactivity with UseFetch
Some help ?
9 replies
NNuxt
Created by Gumaa on 5/27/2024 in #❓・help
What is a standard way of handling typescript in Nuxt3
Are we obly to install typescript in nuxt ?
4 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
maybe @manniL / TheAlexLichter can exeplain it to us
14 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
yes i mentioned it before, only explicitly NuxtLayout component seems to work here
14 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
Same problem, I have to use Nuxtlayout components explicitly
14 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
It doesn't work
14 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Named Slot doesn't work in Layout
i saw the issue, NuxtLayout is not intended to be the root of your component
2 replies
NNuxt
Created by Ulrich on 6/1/2024 in #❓・help
Nuxt Layout with named slot
No description
14 replies
NNuxt
Created by Ulrich on 5/6/2024 in #❓・help
Nuxt UI + Nuxt Tailwind modules result in error
ok, i wil try it
5 replies
NNuxt
Created by Ulrich on 5/5/2024 in #❓・help
Thread issue
No, i'm not using Nuxt UI
7 replies
NNuxt
Created by Ulrich on 5/6/2024 in #❓・help
Nuxt UI + Nuxt Tailwind modules result in error
i already have typescript installed
5 replies
NNuxt
Created by Ulrich on 5/5/2024 in #❓・help
Thread issue
I made what said but i have same issue
7 replies
NNuxt
Created by Ulrich on 5/5/2024 in #❓・help
Thread issue
OK Thanks, let me try it
7 replies
NNuxt
Created by Ulrich on 2/3/2023 in #❓・help
Add UIkit in Nuxt 3
It's in my local projet.
5 replies
NNuxt
Created by Ulrich on 2/3/2023 in #❓・help
Add UIkit in Nuxt 3
Yes i have tried it, but no solution !!!
5 replies