首页 > 解决方案 > 中继 ConnectionHandler.getConnectionID() 连接不存在错误

问题描述

我正在尝试清理我的应用程序中的中继 graphql 流。Atm 在某些地方我仍在使用 fetchKey 和记录失效,我想将其更改为 @appendEdge/@appendNode 指令。不幸的是,每次我试图获得要使用它们的正确连接时,最终都会出现警告说明:

Warning: [Relay][Mutation] The connection with id 'client:ParentType14nif3uirdfut431431hg2rr:__ParentTypeChildrenList_children_connection' doesn't exist.

我正在使用ConnectionHandler.getConnectionID(<id of the parent object of the fragment>, <connection key I've specified>).

有谁知道这里可能是什么问题?此外,如果我理解正确并且如果这有效,我的边缘应该被添加到商店和中继将只确定一切是否是最新的,而不从服务器获取新的边缘,对吧?

标签: graphqlrelayjsrelaymodernreact-relay

解决方案


推荐阅读