First of all: The page https://cmty.app/nuxt/issues/new?repo=apollo-module returns an error, so I have to directly create the issue here.
We are using Nuxt 2.15.8, and 4.0.1-rc.5 of the apollo module. So far, everything works fine, however, for several reasons (e.g. https://github.com/nuxt/nuxt.js/issues/10307), we need to run the frontend with SSR enabled.
The problem we're experiencing is, that on direct access, apollo doesn't fetch new data from the backend (Strapi 4), so changes won't be reflected in the frontend. However, when navigating to a sub-page via Nuxt Link, a call against the Backend is being performed and new/changed data is visible.
For example, if I visit https://example.com/pageA directly, no call against the backend is made. Navigating from here to https://example.com/pageB performs a call to the backend and displays the modified information. Navigating back from here to https://example.com/pageA doesn't perform a call either.
But if I visit https://example.com/pageB, no call against the backend is made. Navigating from here to https://example.com/pageA performs a call to the backend and displays the modified information.
First of all: The page
https://cmty.app/nuxt/issues/new?repo=apollo-module
returns an error, so I have to directly create the issue here.We are using Nuxt 2.15.8, and 4.0.1-rc.5 of the apollo module. So far, everything works fine, however, for several reasons (e.g. https://github.com/nuxt/nuxt.js/issues/10307), we need to run the frontend with SSR enabled.
The problem we're experiencing is, that on direct access, apollo doesn't fetch new data from the backend (Strapi 4), so changes won't be reflected in the frontend. However, when navigating to a sub-page via Nuxt Link, a call against the Backend is being performed and new/changed data is visible.
For example, if I visit
https://example.com/pageA
directly, no call against the backend is made. Navigating from here tohttps://example.com/pageB
performs a call to the backend and displays the modified information. Navigating back from here tohttps://example.com/pageA
doesn't perform a call either.But if I visit
https://example.com/pageB
, no call against the backend is made. Navigating from here tohttps://example.com/pageA
performs a call to the backend and displays the modified information.The code we're using is dead simple:
And the nuxt.config.js part:
What could be the issue? Isn't this module compatible with SSR?