Skip to content

Commit

Permalink
fix: useMutation outside setup (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
d18n authored Sep 21, 2021
1 parent d35c731 commit 9b3af01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/src/useMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function useMutation<
return null
}

onBeforeUnmount(() => {
vm && onBeforeUnmount(() => {
loading.value = false
})

Expand Down

1 comment on commit 9b3af01

@productdevbook
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Akryum when 4.0.0-alpha.16 relaed version. some problem :/

Please sign in to comment.