Skip to content

Setting staleTime on next js server #6104

Answered by TkDodo
Zerebokep asked this question in Q&A
Discussion options

You must be logged in to vote

when rendering on the server, you create a new QueryClient() for every request, so there is no cached data. setting staleTime will likely not do much.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Zerebokep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants