Samuelreichoer
Samuelreichoer
NNuxt
Created by Samuelreichoer on 11/18/2024 in #❓・help
Lazysizes hydration missmatch
No description
5 replies
NNuxt
Created by Samuelreichoer on 11/7/2024 in #❓・help
Fetch Data server and client side module recommended way
I am building a querybuilder for Craft CMS and I need to somehow make fetches on client and server side. I tried to do that with useFetch like that
async function fetchFn(url: string): Promise<FetchResult> {
const { data, error } = await useFetch(url)
return { data, error }
}
async function fetchFn(url: string): Promise<FetchResult> {
const { data, error } = await useFetch(url)
return { data, error }
}
But that only works on client side?! I am confused. What is the recommended way to do that? Maybe like that? https://nuxt.com/docs/guide/recipes/custom-usefetch#custom-usefetch
10 replies
NNuxt
Created by Samuelreichoer on 9/10/2024 in #❓・help
Multiple gtm containers Recommendation
I would like to know what the recommended way is to include two gtm containers in a nuxt3 project. One of the containers is a serverside tracking container. Do modules like nuxt scripts or nuxt-gtag support serverside tracking at all?
2 replies