SSR page content when using vike-react-query and suspense queries #1921
Unanswered
jasonhilldm
asked this question in
Help & Questions
Replies: 1 comment 2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using withFallback from vike-react-query and useSuspenseQuery @tanstack/react-query to fetch data for my test page via telefunc. I also have SSR enabled.
Everything is working fine and the page content is loading correctly. But, I have noticed that on the first page load, the HTML in view source is showing the content of the loading component specified in the withFallback wrapper rather than the final page content (after the suspense query has completed).
The same thing happens when using a manual Suspense boundary instead of the withFallback wrapper. Is there a way to SSR the full page content (after suspense queries have executed) so that the initial page HTML is complete?
Beta Was this translation helpful? Give feedback.
All reactions