rportugal/apollo-cache-redux

Network error: Encountered a sub-selection on the query

Opened this issue · 3 comments

ncaught (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.
at new ApolloError (bundle.esm.js:60)
at QueryManager. (bundle.esm.js:1184)
at step (tslib.es6.js:97)
at Object.next (tslib.es6.js:78)
at tslib.es6.js:71
at new Promise ()
at __awaiter (tslib.es6.js:67)
at bundle.esm.js:1147
at bundle.esm.js:1627
at Array.forEach ()

function isIdValue(idObject) {
return idObject &&
idObject.type === 'id' &&
typeof idObject.generated === 'boolean';
}

V1os commented

the same

Just had this happen to me today, this is because its depending on really old versions of apollo-cache and apollo-utilities which means npm resolution picks the much earlier version as soon as you add the project. Dependencies need updating.