我有一个项目是从react迁移过来的--Apollo2.x -> 3.x。2.x代码库中有这样一行代码:
import { MutationProps } from 'react-apollo';当我将我的依赖项升级到3.x时,我得到一个错误,说是node_modules/react-apollo/lib has no exported member 'MutationProps'。
MutationProps在3.x中的迁移路径是什么?
发布于 2019-12-12 04:44:47
看起来在3.x中没有明确的等价物。我选择了MutationComponentOptions,因为它包含了我需要的特定属性。
https://stackoverflow.com/questions/59258447
复制相似问题