NextJS - getServerSideProps refetches data on each page load. #2794
Unanswered
jacojvv-dev
asked this question in
Q&A
Replies: 0 comments
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.
-
As mentioned in the SSR documentation it is best to
Create a new QueryClient instance for each page request. This ensures that data is not shared between users and requests.
.This however means that every time I load the page the request is made to the respective backend server to prefetch the data for hydration.
I was wondering if there is a way that one could cache the data between page loads?
Beta Was this translation helpful? Give feedback.
All reactions