Share cache between nextjs apps #2235
Unanswered
callumbooth
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.
-
Hi,
I'm wondering if it is possible to share a cache between two separate NextJS apps that live on the same domain, using NextJS's multi zone functionality. For example
If I have my main app and a couple of routes such as:
And I have a blog app and a couple of routes:
If I had a section on the homepage that loads the most recent blog posts and the navigates to the /blog page then ideally I wouldn't need to fetch those most recent blog posts again as they should be in the cache.
Is this possible with react query or because they are different apps (servers) they have their own independent cache that wont share across the two.
Any pointers please let me know, thanks
Beta Was this translation helpful? Give feedback.
All reactions