I am using Apollo Client fetchMore function and configured the Apollo Client cache:
The Apollo Client typePolicies configured like:
typePolicies: {
NodesTypeOne: {
keyFields: [],
fields: {
nodes: offsetLimitPagination(),
},
},
NodesTypeTwo: {
keyFields: [],
fields: {
nodes: offsetLimitPagination(),
},
},,
},
From the Node detail-page when I use the browser Back button (so it’a navigating back to the overview page, without refreshing the browser) and navigate from this overview page to another Node detail-page, it’s merging the results from the previous route and the current route?
In the useQuery hook I am using:
notifyOnNetworkStatusChange: true,
Somehow, when I hit the browser Back button, I have to reset the cache or something?
How do I have to solve this issue?