Skip to content

Commit

Permalink
fix: actually expose mutateAsync 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
sandstone991 committed Apr 6, 2024
1 parent 49f6725 commit aa004d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mobbing-query",
"description": "A very tiny wrapper around tanstack/query-core to provide observable queries inside mobx",
"author": "Ahmed Azzam",
"version": "1.0.5",
"version": "1.0.6",
"repository": {
"type": "git",
"url": "https://github.com/sandstone991/MobQ"
Expand Down
3 changes: 3 additions & 0 deletions src/Mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ class MobxMutation<
}
this.mutation.mutate(variables, options);
}
mutateAsync(variables: TVariables, options?: MutateOptions<TData, TError, TVariables, TContext> | undefined){
return this.mutation.mutateAsnyc(variables, options)
}
updateOptions(
options: () => MutationObserverOptions<TData, TError, TVariables, TContext>,
) {
Expand Down

0 comments on commit aa004d3

Please sign in to comment.