chore: clean up
This commit is contained in:
@@ -240,15 +240,12 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
|
||||
isStale.value = false
|
||||
|
||||
const invalidateStops = args.updateSubs!.map((sub) => {
|
||||
console.log("create sub")
|
||||
|
||||
return wonkaPipe(
|
||||
client.value.executeSubscription(sub),
|
||||
onEnd(() => {
|
||||
if (source.value) execute()
|
||||
}),
|
||||
subscribe(() => {
|
||||
console.log("invalidate!")
|
||||
return execute()
|
||||
})
|
||||
).unsubscribe
|
||||
@@ -260,7 +257,6 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
|
||||
onEnd(() => {
|
||||
loading.value = false
|
||||
isStale.value = false
|
||||
console.log("end")
|
||||
}),
|
||||
subscribe((res) => {
|
||||
if (res.operation.key === request.value.key) {
|
||||
@@ -323,10 +319,6 @@ export const useGQLQuery = <DocType, DocVarType, DocErrorType extends string>(
|
||||
execute,
|
||||
})
|
||||
|
||||
watchEffect(() => {
|
||||
console.log(JSON.stringify(response))
|
||||
})
|
||||
|
||||
return response
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user