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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user