When using Graphcache with Next.js and app router (with client components) there seems to be an issue that after invalidating cache queries are not refetched and stale data is shown.
This was not an issue with pages but stopped working when migrating to app router.
I created a reproduction that shows the issue. Only after refetching the query with { requestPolicy: "network-only" } fresh data is shown.
Describe the bug
When using Graphcache with Next.js and app router (with client components) there seems to be an issue that after invalidating cache queries are not refetched and stale data is shown. This was not an issue with pages but stopped working when migrating to app router. I created a reproduction that shows the issue. Only after refetching the query with
{ requestPolicy: "network-only" }
fresh data is shown.Reproduction
https://github.com/ookil/urql-graphcache
Urql version
"@urql/core": "^4.3.0", "@urql/exchange-graphcache": "^6.5.0", "@urql/next": "^1.1.1",
Validations