NuxtN
Nuxt15mo ago
alex pixel

nuxi generate, nested useAsyncData, not working

I have set experimental: { asyncContext: true } in nuxt.config.ts (nuxt3 project). I use multiple useAsyncData in the component tree.
It works with SSR, but when I try to do a nuxi generate it fails with 500 Errors (strangely only, after the first page).
I logged it and it seams that the second useAsyncData isn't executed at all in SSG. Also tried a callWithNuxt but that didn't work either.
Is it known that asyncContext: true doesn't work with SSG? Is this expected behaviour? Any workarounds/tips for this kind of problem?
Was this page helpful?