NextJS SSG + React Query cache invalidation
Unanswered
Polar bear posted this in #help-forum
Polar bearOP
Hi there, I'm using NextJS 13 pages router and would like to add React Query to cache some data in my pages created with SSG (getStaticProps) in order to avoid unnecesary requests to my server. Thing is, if I configure React Query to have client-side caching of 5 minutes, and then I change the data in the backend (which gets revalidated with on-demand-revalidation ( https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration#using-on-demand-revalidation )), does that mean that my users will see stale data for 5 minutes because it's cached client-side?