Stale cache date with SSR #1980
Unanswered
mauriceackel
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.
-
Hey folks,
I have the following scenario: My NextJS project uses SSR to query some data and populate the fallback data as described in the docs. On the client, the fallback data is then passed to the SWRConfig component.
When I'm in dev mode, I'm running into the following case:
I don't know if I'm doing something wrong but right now, the only way to then resolve this and get the most recent data is to manually clear my browser's cache.
Is there support to automatically invalidate the client cache if page is rendered server-side with the most up-to-date value to prevent this regression to older data?
Beta Was this translation helpful? Give feedback.
All reactions