Replies: 2 comments 1 reply
-
no, react-query is per se not a server cache. Every time you call export async function getServerSideProps() {
+ const queryClient = new QueryClient()
await queryClient.prefetchQuery(...) |
Beta Was this translation helpful? Give feedback.
1 reply
-
For now i found one more problem. |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all. I have a couple questions.
Im using v4.24.4 with SSR and nextjs without app folder
await queryClient.prefetchQuery(
anddehydratedState: dehydrate(queryClient)
At page like page/[pageId]. When im changing pageId, same component, just content different, server cache working?
I mean, that when i will change router for different pageId, will it get data from cache?
We using 1 docker file to turn on 3 different build of project and sometime we get strange data in react-query.
Its like it merged between build.
We will try to disable server cache for test. But its very strange
Beta Was this translation helpful? Give feedback.
All reactions