Skip to content

Uncaught (in promise) ApolloError while mutation #2014

Description

@SumVur

Describe the Bug

Using GraphQLProvider with props link which has value [recaptchaLink] in _app.tsx probably leads to error Uncaught (in promise) ApolloError while mutation

image

Uncaught(In promise)

I am not 100% sure that this is the root of the Apollo issue, but immediately after we removed recaptchaLink the issue Uncaught (in promise) ApolloError disappeared

GraphQLProvider from '@graphcommerce/graphql'

"@graphcommerce/graphql": "6.1.0"

recaptchaLink from '@graphcommerce/googlerecaptcha/link/recaptchaLink'

"@graphcommerce/googlerecaptcha": "6.1.0"

"@graphcommerce/graphql": "6.1.0"

Expected Behavior

Using GraphQLProvider with props link which has value [recaptchaLink] in _app.tsx should not lead to unexpected bug

To Reproduce

Add to _app.tsx

import { recaptchaLink } from '@graphcommerce/googlerecaptcha/link/recaptchaLink'
import { GraphQLProvider } from '@graphcommerce/graphql'
****

return (
    <>
     ****
      <GraphQLProvider {...props} links={[recaptchaLink]}>
       ****
      </GraphQLProvider>
     ****
    </>
)

and add googleRecaptchaKey to graphcommerce.config.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions