Joni
Pages Ref doesn't work from nuxt documentation
I was trying to call a function from a nuxtpage-child with the pageRef and defineExpose as documented here https://nuxt.com/docs/api/components/nuxt-page#pages-ref
But it doesnt work, stackblitz for reproduction:
https://stackblitz.com/edit/nuxt3-welcome-uf57hg?file=pages%2Fitems.vue,pages%2Fitems%2Findex.vue,app.vue
1 replies
pinia custom plugin undefined
Hey there i have a custom fetch function from the docs https://nuxt.com/docs/guide/recipes/custom-usefetch but when declaring it inside the global store context of a pinia store its undefined, in the function scope it is not. But i dont really wanna call the
useNuxtApp()
composable everytime I fetch:
Do you have any regards why?
Thanks!7 replies
Proxy websockets `ws://nuxtserver/ws-api/xyz` → `ws://mysecretdomain/xyz`
Hey there, I know this is probably annoying but has somebody found a way to proxy websockets?
I'd like to do this without any extra proxy like nginx, traefik etc
/ws-api/xyz
→ ws://mysecretdomain/xyz
I tried several packages already and also some weird things, but had no luck.2 replies
Layout optional for page
Hello there,
I have a page file download and want the layout to be optional / conditional by pinia store:
Due to SSR nuxt throws error "userStore is not defined"...
Workaround is
Due to SSR I get a hydration error, what should be the correct thing to do here?
2 replies