Skip to content

Commit 9732fa8

Browse files
committed
fix(query): 🐞 pass option to mutate function
1 parent 06886ed commit 9732fa8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

query/src/lib/mutation.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,11 @@ class Mutation {
101101
}),
102102
);
103103

104-
const mutate = (variables: TVariables) => {
105-
mutationObserver.mutate(variables).catch(() => {
104+
const mutate = (
105+
variables: TVariables,
106+
options?: MutateOptions<TData, TError, TVariables, TContext>,
107+
) => {
108+
mutationObserver.mutate(variables, options).catch(() => {
106109
// noop
107110
});
108111
};

0 commit comments

Comments
 (0)