apollographql / apollo-client-nextjs

Apollo Client support for the Next.js App Router
https://www.npmjs.com/package/@apollo/experimental-nextjs-app-support
MIT License
352 stars 25 forks source link

is apollo client next compatible with unstable cache? #250

Open yanv1991 opened 1 month ago

yanv1991 commented 1 month ago

Just wondering if we can use apollo client next + unstable cache in a RSC, if not, what alternatives could we consider to cache data in the server?

phryneas commented 1 month ago

That's a very broad question. What would you want to use it for?

Generally, Apollo Client will do normal fetch calls in the backend, so the fetch cache of Next.js would already apply - I'm not sure what you would use an additional cache layer for.