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
- Many devs love to shit on the guy from the 'I just want the exe.
- Now imagine how poor people stress if their smartphone bricks or gets damaged or lost.
- Resuming an extended-thinking session fails permanently with 400 "thinking blocks cannot be modified" (transcript stores thinking text as empty but keeps signat
- I'll preface this with a statement that as a European I want European alternatives to succeed, and MS-owned GitHub to shrivel and disappear.
- Yeah, but there’s a world of difference between “not perfect” and “we rounded a few sliders, and now the modal is a nightmare to use”.
- I used to write a lot of native Windows corporate software in the 90's and 2000's and my standard login window was a floating draggable o...
Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments
reliability (SaaS)
Many devs love to shit on the guy from the 'I just want the exe.
Now imagine how poor people stress if their smartphone bricks or gets damaged or lost.
Resuming an extended-thinking session fails permanently with 400 "thinking blocks cannot be modified" (transcript stores thinking text as empty but keeps signat
I'll preface this with a statement that as a European I want European alternatives to succeed, and MS-owned GitHub to shrivel and disappear.
Yeah, but there’s a world of difference between “not perfect” and “we rounded a few sliders, and now the modal is a nightmare to use”.
I used to write a lot of native Windows corporate software in the 90's and 2000's and my standard login window was a floating draggable o...
App broken with Mosquitto broker 7.0.0
[BUG] Remote Control: automatic reconnection doesn't work -- connection drops silently with no recovery
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
Comments (0)
No comments yet. Start the discussion.