Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: regression on join team deference due to GQLClient pause behavior

Andrew Bastin323d233495df
diff --git a/packages/hoppscotch-app/helpers/backend/GQLClient.ts b/packages/hoppscotch-app/helpers/backend/GQLClient.ts
index 368cb2a8a..69d323180 100644
--- a/packages/hoppscotch-app/helpers/backend/GQLClient.ts
+++ b/packages/hoppscotch-app/helpers/backend/GQLClient.ts
@@ -339,7 +339,7 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
source.value = !isPaused.value
? client.value.executeQuery<DocType, DocVarType>(request.value, {
- requestPolicy: "cache-and-network",
+ requestPolicy: "network-only",
})
: undefined
},
@@ -421,6 +421,7 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
}
}
+ isPaused.value = false
updateTicker.value = !updateTicker.value
}