This is my main query to get all data from a server.
Then I would like to set this in Apollo link state.
To set in link state here's my resolver.
This is my client/cache query to get previous cache state.
I don't know where I'm missing anything on this.
ApolloError.js:37 Uncaught (in promise) Error: Network error: Encountered a sub-selection on the query, but the store doesn't have an object reference. This should never happen during normal use unless you have custom code that is directly manipulating the store; please file an issue.
This error might be happening due to apollo-cache-inmemory
package version. Try updating the package to the latest version:
npm update apollo-cache-inmemory
This github thread is trying to track the issue and updating the package seems to work just fine: https://github.com/apollographql/apollo-client/issues/4125
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With