Closed jaimejazarenoiii closed 1 year ago
Nevermind, found the issue. I was calling this
final addStarMutation = useMutation(
MutationOptions(
document: gql(signIn), // this is the mutation string you just created
// you can update the cache based on results
// or do something with the result.data on completion
onCompleted: (dynamic resultData) {
print(resultData);
},
),
);
outside of the builder
Whenever I click a button that runs a mutation it throws that error. Using stacked framework btw.
Here's the widget calling it.