You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to define caching behavior by specifying custom merge function in InMemoryCache because I am getting the following errors in console.
Cache data may be lost when replacing the reviews_reviews field of a Subscription object.
This could cause additional (usually avoidable) network requests to fetch data that were otherwise cached.
To address this problem (which is not a bug in Apollo Client), define a custom merge function for the Subscription.reviews_reviews field, so InMemoryCache can safely merge these objects:
existing: [object Object],[object Object],[object Object]
incoming: [object Object],[object Object]
For more information about these options, please refer to the documentation:
* Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers
* Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects
But I couldn't find a way to do this in Nuxt Apollo.
The solution you'd like
Allow customizing InMemoryCache
Possible alternatives
No response
Additional information
No response
The text was updated successfully, but these errors were encountered:
Your use case
I want to define caching behavior by specifying custom
merge
function inInMemoryCache
because I am getting the following errors in console.But I couldn't find a way to do this in Nuxt Apollo.
The solution you'd like
Allow customizing
InMemoryCache
Possible alternatives
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: