chore: clean up

This commit is contained in:
liyasthomas
2021-11-02 19:45:41 +05:30
parent 6db99c9e37
commit 5f0800760f
3 changed files with 1 additions and 20 deletions

View File

@@ -460,13 +460,6 @@ watch(
}
)
watch(
() => pendingInvites,
() => {
console.log(pendingInvites)
}
)
const removeInvitee = async (id: string) => {
const result = await revokeTeamInvitation(id)()
if (E.isLeft(result)) {

View File

@@ -88,7 +88,7 @@
</template>
<script setup lang="ts">
import { ref, watchEffect } from "@nuxtjs/composition-api"
import { ref } from "@nuxtjs/composition-api"
import * as E from "fp-ts/Either"
import { useGQLQuery } from "~/helpers/backend/GQLClient"
import {
@@ -117,10 +117,6 @@ const myTeams = useGQLQuery<
pollDuration: 5000,
})
watchEffect(() => {
console.log(myTeams)
})
const displayModalAdd = (shouldDisplay: boolean) => {
showModalAdd.value = shouldDisplay
}

View File

@@ -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
}