Skip to content

Commit

Permalink
fix: replace onUnmounted with onScopeDispose
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmessing committed Aug 22, 2024
1 parent faf8af8 commit 19b0972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-apollo-composable/src/util/loadingTracking.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Ref, watch, onUnmounted, ref, getCurrentScope, onScopeDispose } from 'vue-demi'
import { Ref, watch, ref, getCurrentScope, onScopeDispose } from 'vue-demi'
import { isServer } from './env.js'

import type { EffectScope } from 'vue-demi'
Expand Down Expand Up @@ -36,7 +36,7 @@ export function getCurrentTracking () {
subscriptions: ref(0),
})
// Cleanup
onUnmounted(() => {
onScopeDispose(() => {
globalTracking.components.delete(currentScope)
})
} else {
Expand Down

0 comments on commit 19b0972

Please sign in to comment.