Skip to content

Commit 9b3af01

Browse files
authored
fix: useMutation outside setup (#1262)
1 parent d35c731 commit 9b3af01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vue-apollo-composable/src/useMutation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export function useMutation<
106106
return null
107107
}
108108

109-
onBeforeUnmount(() => {
109+
vm && onBeforeUnmount(() => {
110110
loading.value = false
111111
})
112112

0 commit comments

Comments
 (0)