useFetch() , useAsyncData() doesn't work on server side rendering.
Am currently dealing with an issue with nuxt3
useFetch() , useAsyncData() doesn't work on initial page load or refresh unless I set the server property to false
And I need this pages to be rendered on the server π.
3 Replies
I have same issue, i came here to find solution for this π©
a small await before calling it
Including am await doesn't seem practical. I need it for SEO purpose
Turns out updating nuxt or node to version 20 fixed it.
I also just noticed it's working for url or endpoints not running on the localhost but doesn't work for localhost