We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5f424 commit b57f2beCopy full SHA for b57f2be
packages/vue-apollo-composable/src/util/loadingTracking.ts
@@ -27,6 +27,15 @@ export function getCurrentTracking () {
27
}
28
29
let tracking: LoadingTracking
30
+ if (isServer) {
31
+ // SSR does not support onScopeDispose, so if we don't skip this, it will leak memory
32
+ tracking = {
33
+ queries: ref(0),
34
+ mutations: ref(0),
35
+ subscriptions: ref(0),
36
+ }
37
+ return { tracking }
38
39
40
if (!globalTracking.components.has(currentScope)) {
41
// Add per-component tracking
0 commit comments