NuxtN
Nuxt3y ago
4 replies
Xulo

SSR Issue: Empty Data on Page Reload with Nuxt 3 and Strapi useAsyncData

Hello everyone! I'm having an issue with fetching content from Strapi using useAsyncData from Nuxt 3 for server-side rendering. When I refresh the page, the data is empty, but it works fine when I navigate to another page and come back. The issue occurs only on page reloads. Here's my code snippet:

Does anyone have any idea why this doesn't work as expected on page reloads? Any suggestions or insights would be greatly appreciated! Thanks in advance.
image.png
Was this page helpful?