Skip to content

[react - prerender issue] vite-plugin-ssr + tanstack query #774

Closed Answered by YannBirba
YannBirba asked this question in Help & Questions
Discussion options

You must be logged in to vote

I just found the issue, if anyone is interested i pushed my fix here : YannBirba/vite-ssr-with-react-query prerender commit fix

QueryClient setting in _default.page.server.tsx was the issue and especially the cachetime.

I noticed during some tests that prerender script need to wait during all the cachetime before ending the script.

So the fix is to remove the cachetime and set it to 0, the script don't need anymore to wait during cachetime and the command ends as expected.

Replies: 7 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@YannBirba
Comment options

Comment options

You must be logged in to vote
4 replies
@brillout
Comment options

@brillout
Comment options

@YannBirba
Comment options

@brillout
Comment options

Answer selected by YannBirba
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #773 on April 09, 2023 19:30.