这是我从服务器获取所有数据的主要查询。
然后我想在 Apollo 链接状态下设置它。
要设置链接状态,这是我的解析器。
这是我的客户端/缓存查询,用于获取以前的缓存状态。
我不知道我在哪里遗漏了任何东西。
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.
请您参考如下方法:
此错误可能是由于 apollo-cache-inmemory 软件包版本导致的。尝试将软件包更新到最新版本:
npm 更新 apollo-cache-inmemory
这个 github 线程正在尝试跟踪问题,并且更新包似乎工作得很好:https://github.com/apollographql/apollo-client/issues/4125






