N
Nuxtβ€’7mo ago
TechieStephen

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
Alap
Alapβ€’7mo ago
I have same issue, i came here to find solution for this 😩
xibman
xibmanβ€’7mo ago
a small await before calling it
TechieStephen
TechieStephenOPβ€’7mo ago
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
Want results from more Discord servers?
Add your server