Dedupe requests between server & client #1436
Unanswered
mAAdhaTTah
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.
-
With the new cache provider + global fallback, we now have a good way of fetching data on the server side & bootstrapping the application on the client side with the relevant data. However, this opens up another problem I'm starting to consider: how do we tell the server the client has a particular set of data and not to refetch it?
We're using Nextjs, and with the SSG, this is admittedly not really an issue, but we're building a logged-in app that fetches the authed user's info in
getServerSideProps
on initial load, so we can bootstrap the app as quickly as possible. However, if the user navigates to another page that also needs that same info, that data is reloaded on the server, even though the client already has it. Has anyone started to look at/consider how we might be able to tell Nextjs "hey, we have the data for this key, you don't need to reload it for me"?Beta Was this translation helpful? Give feedback.
All reactions