manbartz
manbartz
NNuxt
Created by manbartz on 11/27/2024 in #❓・help
UBadge leading and trailing slots don't work
It does have leading/trailing slots, as described here in this link: https://ui.nuxt.com/components/badge#leading
5 replies
NNuxt
Created by manbartz on 6/15/2024 in #❓・help
getCookie in server routes returns undefined on initial page serve (ssr)
For what it's worth, I tried this: const { data: useFetchData } = await useFetch('/api/useFetch') And it doesn't run on load.
8 replies
NNuxt
Created by manbartz on 6/15/2024 in #❓・help
getCookie in server routes returns undefined on initial page serve (ssr)
Hmm, but useFetch doesn't seem to run at all on load, see here: https://github.com/nuxt/nuxt/issues/13805#issuecomment-1397317230
8 replies
NNuxt
Created by manbartz on 6/15/2024 in #❓・help
getCookie in server routes returns undefined on initial page serve (ssr)
https://nuxt.com/docs/getting-started/data-fetching#pass-client-headers-to-the-api This seems to work, I guess I can make a composable wrapper to clean this up. Can anyone clarify if this is the best way?
8 replies