Skip to content

Commit

Permalink
fix: useSubscription outside of component
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Nov 28, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 3c8545b commit a37a560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vue-apollo-composable/src/useSubscription.ts
Original file line number Diff line number Diff line change
@@ -280,7 +280,7 @@ export function useSubscription <
})

// Teardown
onBeforeUnmount(stop)
vm && onBeforeUnmount(stop)

return {
result,

0 comments on commit a37a560

Please sign in to comment.