-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
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
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
Metadata
Metadata
Assignees
Labels
No labels

