IssueRaiser

Mutations fail using aws-appsync with @apollo/react-hooks 3.0.0

**Do you want to request a *feature* or report a *bug*?** Bug **What is the current behavior?** When performing a mutation whilst online, the promise never resolves, and the mutation just hangs. **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** We are starting to use @apollo/react-hooks 3.0.0 since the previous hook library we were using has been deprecated and has a bug. This has a dependency on apollo-client 2.6.3, which is not compatible with aws-appsync. To fix this, we are forcing resolutions in npm to fix the version across libraries: ``` "resolutions": { "apollo-client": "2.6.3" } ``` The app compiles and runs ok. Queries work fine, but the mutations hang. To make sure the problem doesn't lie with react-hooks lib, i tried mutating using the client directly: ``` console.log('mutating...') const result = await client.mutate({ mutation: MUTATION, variables: { forename: 'test value', }, }) console.log('result', result) ``` **What is the expected behavior?** Mutations should work as normal **Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?** @apollo/react-hooks 3.0.0 aws-appsync 1.7.2 apollo-client 2.6.3

Posted by richblend on Aug 8, 2019, 9:15 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

reliability (SaaS)

Mutations fail using aws-appsync with @apollo/react-hooks 3.0.0

richblendAug 8, 2019, 9:15 AM

**Do you want to request a *feature* or report a *bug*?** Bug **What is the current behavior?** When performing a mutation whilst online, the promise never resolves, and the mutation just hangs. **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.** We are starting to use @apollo/react-hooks 3.0.0 since the previous hook library we were using has been deprecated and has a bug. This has a dependency on apollo-client 2.6.3, which is not compatible with aws-appsync. To fix this, we are forcing resolutions in npm to fix the version across libraries: ``` "resolutions": { "apollo-client": "2.6.3" } ``` The app compiles and runs ok. Queries work fine, but the mutations hang. To make sure the problem doesn't lie with react-hooks lib, i tried mutating using the client directly: ``` console.log('mutating...') const result = await client.mutate({ mutation: MUTATION, variables: { forename: 'test value', }, }) console.log('result', result) ``` **What is the expected behavior?** Mutations should work as normal **Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?** @apollo/react-hooks 3.0.0 aws-appsync 1.7.2 apollo-client 2.6.3

Comments (0)

No comments yet. Start the discussion.

Comment on this issue