fix: gql teamID not being passed (#3392)

* chore: bump dependencies for path.charCodeAt issue
* fix: gql teamID is not passed issue
This commit is contained in:
Anwarul Islam
2023-09-28 22:34:02 +06:00
committed by GitHub
parent 0301649aff
commit 175a991ec4
3 changed files with 250 additions and 180 deletions

View File

@@ -24,9 +24,9 @@
"devDependencies": {
"@lezer/generator": "^1.5.0",
"mocha": "^9.2.2",
"rollup": "^2.70.2",
"rollup-plugin-dts": "^4.2.1",
"rollup-plugin-ts": "^2.0.7",
"typescript": "^4.6.3"
"rollup": "^3.29.3",
"rollup-plugin-dts": "^6.0.2",
"rollup-plugin-ts": "^3.4.5",
"typescript": "^5.2.2"
}
}

View File

@@ -10,6 +10,7 @@ import {
WatchStopHandle,
watchSyncEffect,
watch,
nextTick,
} from "vue"
import {
client,
@@ -101,7 +102,7 @@ export const useGQLQuery = <
const rerunQuery = () => {
source.value = !isPaused.value
? client.value.executeQuery<DocType, DocVarType>(request.value, {
? client.value?.executeQuery<DocType, DocVarType>(request.value, {
requestPolicy: "network-only",
})
: undefined
@@ -126,7 +127,7 @@ export const useGQLQuery = <
const invalidateStops = args.updateSubs!.map((sub) => {
return wonkaPipe(
client.value.executeSubscription(sub),
client.value!.executeSubscription(sub),
onEnd(() => {
if (source.value) execute()
}),
@@ -194,7 +195,8 @@ export const useGQLQuery = <
}
isPaused.value = false
rerunQuery()
nextTick(rerunQuery)
}
const pause = () => {