Replies: 1 comment
-
I have a similar question as well. Would love to get some thoughts and possible resolutions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The documentation that goes over SSR & Nuxt found here: https://tanstack.com/query/v4/docs/vue/guides/ssr is a bit confusing.
For the Nuxt 3 example, we see:
Its not clear what is happening here, and I see multiple issues:
await suspense()
suspense()
returns a query result, does something need to happen with that result? Why does it need to return a result --- I thought suspense just executes the query, in this case, on the server. I say this because in the SSR context,data
is undefined, but the data that is returned fromsuspense()
is populated.There should be a working example of how to properly use
suspense
in Nuxt since the current one is broken, or some more information on how this part is supposed to work -- as it stands, this causes hydration issues:Beta Was this translation helpful? Give feedback.
All reactions