You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In demo queryContent doesn't return posts on SSR, but work on client rendering.
Open demo. Home page rendered correct on server and client. From there go to /tags/sirovovk (nuxt-link) to trigger client rendering. You should see JSON with 4 posts. Now click /tags/sirovovk (a) to trigger SSR for same page. Expected: same JSON with 4 posts, but actual: nothing.
Environment
Linux
v16.14.2
3.0.0-rc.9
0.5.1
npm@7.17.0
vite
modules
@nuxt/content@2.1.0
-
Reproduction
https://stackblitz.com/edit/github-6ahpka-6fyebp?file=components%2FFeed.vue%3AL21
Describe the bug
In demo
queryContent
doesn't return posts on SSR, but work on client rendering.Open demo. Home page rendered correct on server and client. From there go to
/tags/sirovovk (nuxt-link)
to trigger client rendering. You should see JSON with 4 posts. Now click/tags/sirovovk (a)
to trigger SSR for same page. Expected: same JSON with 4 posts, but actual: nothing.Additional context
May be related to #1471 but I'm not shure
Logs
No response
The text was updated successfully, but these errors were encountered: