我包装了来自react-apollo的useMutation钩子,以便每次使用变体时都可以向Sentry发送错误: import { useMutation } from '@apollo/react-hooks'import { MutationHookOptions } from 'react-apollo'
typ
此Formk表单工作正常,但当我在表单中使用"useMutation“钩子时,它会显示错误”无法在上下文中找到“客户端”或作为选项传入。将根组件包装在via选项中,或在via选项中传递ApolloClient实例“。我也使用了“变异”,这也会产生同样的错误。我认为错误在突变部分。/react-hooks';
const RE