Kyllian
Kyllian
NNuxt
Created by Kyllian on 4/22/2025 in #❓・help
Hydration error I can not figure out
this also fixes it, not entirely sure which solution is best, though
12 replies
NNuxt
Created by Kyllian on 4/22/2025 in #❓・help
Hydration error I can not figure out
i did it like this now:
const { data: specificLocation, status } = useLazyFetch<{location: ILocation, cityName: string}>(() => {
if (slug.value.length === 3) {
return `/api/v2/locations/search?countryCode=${slug.value[0]}&cityName=${slug.value[1]}&locationName=${slug.value[2]}`;
}
return '';
}, {
immediate: true,
watch: [slug]
});
const { data: specificLocation, status } = useLazyFetch<{location: ILocation, cityName: string}>(() => {
if (slug.value.length === 3) {
return `/api/v2/locations/search?countryCode=${slug.value[0]}&cityName=${slug.value[1]}&locationName=${slug.value[2]}`;
}
return '';
}, {
immediate: true,
watch: [slug]
});
12 replies
NNuxt
Created by Kyllian on 4/22/2025 in #❓・help
Hydration error I can not figure out
hm i see
12 replies
NNuxt
Created by Kyllian on 4/7/2025 in #❓・help
Mongoose 'Cannot overwrite `PhotoRequest` model once compiled.'
@kapa.ai so i have to write my interfaces 3 times?
10 replies
NNuxt
Created by Cordobes on 3/20/2025 in #❓・help
postcss error (tailwind)
to my experience this usually means an error in the code somewhere, like missing {}
19 replies
NNuxt
Created by Kyllian on 3/20/2025 in #❓・help
Loading in large dataset
yeah me neither, ended up scrapping the functionality
17 replies
NNuxt
Created by Kyllian on 3/20/2025 in #❓・help
Loading in large dataset
@kapa.ai using nuxt content, how can I fetch content on server side
17 replies
NNuxt
Created by Wirkhof on 3/17/2025 in #❓・help
How to disable this shaking of icon in Nuxtr
yeah but i just never noticed it
35 replies
NNuxt
Created by Wirkhof on 3/17/2025 in #❓・help
How to disable this shaking of icon in Nuxtr
status.languageStatus is the ID
35 replies
NNuxt
Created by Wirkhof on 3/17/2025 in #❓・help
How to disable this shaking of icon in Nuxtr
only thing i can think of is adding custom css to hide the icon
35 replies
NNuxt
Created by Wirkhof on 3/17/2025 in #❓・help
How to disable this shaking of icon in Nuxtr
No description
35 replies
NNuxt
Created by Wirkhof on 3/17/2025 in #❓・help
How to disable this shaking of icon in Nuxtr
does this work
35 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
might help
79 replies
NNuxt
Created by ObSeSSeN on 3/7/2025 in #❓・help
Hydration hell - A simple loading state on a Nuxt UI button
just await nextTick
79 replies
NNuxt
Created by Kyllian on 3/10/2025 in #❓・help
useFetch, how to type correctly.
whoow lets replace a lot of code with even more code
32 replies
NNuxt
Created by Kyllian on 3/10/2025 in #❓・help
useFetch, how to type correctly.
@kapa.ai is there absolutely NO way to clean this typeof data?.location.name === 'object' ? data?.location.name.en : data?.location.name || 'Loading'"
32 replies
NNuxt
Created by Kyllian on 3/10/2025 in #❓・help
useFetch, how to type correctly.
so much for DRY
32 replies
NNuxt
Created by Kyllian on 3/10/2025 in #❓・help
useFetch, how to type correctly.
cool so there is no way to have this structure
32 replies
NNuxt
Created by Kyllian on 3/10/2025 in #❓・help
useFetch, how to type correctly.
@kapa.ai this messes with the typing
32 replies
NNuxt
Created by Kyllian on 3/10/2025 in #❓・help
useFetch, how to type correctly.
@kapa.ai how would I parse types in useFetch using transform:
const updateRef = ref(0)
const { data, status } = useFetch<{ city: any, location: ILocation, stones: IStone[] }>(`/api/v2/locations/${parsedId}`, {
watch: [updateRef],
transform(data) {
data.location.name = data.location.name as ITranslatedText
return data
}
})
const updateRef = ref(0)
const { data, status } = useFetch<{ city: any, location: ILocation, stones: IStone[] }>(`/api/v2/locations/${parsedId}`, {
watch: [updateRef],
transform(data) {
data.location.name = data.location.name as ITranslatedText
return data
}
})
32 replies