Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Disabling GQL schema polling if there was an error
Andrew Bastin279c8c14cce8
diff --git a/pages/graphql.vue b/pages/graphql.vueindex 00d17c019..3bc80175b 100644--- a/pages/graphql.vue+++ b/pages/graphql.vue@@ -810,6 +810,8 @@ export default {this.$refs.queryEditor.setValidationSchema(schema)this.$nuxt.$loading.finish()++ if (this.isPollingSchema) this.timeoutSubscription = setTimeout(this.pollSchema, 7000)} catch (error) {this.$nuxt.$loading.finish()@@ -821,11 +823,12 @@ export default {})console.log("Error", error)++ this.isPollingSchema = false}this.$nuxt.$loading.finish()- if (this.isPollingSchema) this.timeoutSubscription = setTimeout(this.pollSchema, 7000)},async getSchema() {const startTime = Date.now()