Skip to content

Commit

Permalink
Fix support for errorPolicy on useMutation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesreggio committed Jan 26, 2020
1 parent be834c5 commit f82222d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react/data/MutationData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export class MutationData<
update,
context: mutationContext = {},
awaitRefetchQueries = false,
fetchPolicy
fetchPolicy,
errorPolicy,
} = this.getOptions();
const mutateOptions = { ...mutationFunctionOptions };

Expand All @@ -107,6 +108,7 @@ export class MutationData<
update,
context: mutationContext,
fetchPolicy,
errorPolicy,
variables: mutateVariables,
...mutateOptions
});
Expand Down

0 comments on commit f82222d

Please sign in to comment.