Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught (in promise) ApolloError while mutation #2014

Open
SumVur opened this issue Aug 5, 2023 · 0 comments
Open

Uncaught (in promise) ApolloError while mutation #2014

SumVur opened this issue Aug 5, 2023 · 0 comments

Comments

@SumVur
Copy link
Contributor

SumVur commented Aug 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant