From cabee0ecc8336a93c2785d1221a10e1856139e5e Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Wed, 11 Oct 2023 08:29:12 +0600 Subject: [PATCH] fix: memory leak issue on TeamInvite modal (#3440) * fix: memory leak issue * feat: added rerun ability * chore: lint fix --- packages/hoppscotch-common/src/composables/graphql.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/src/composables/graphql.ts b/packages/hoppscotch-common/src/composables/graphql.ts index a3cee3864..0e4f933c2 100644 --- a/packages/hoppscotch-common/src/composables/graphql.ts +++ b/packages/hoppscotch-common/src/composables/graphql.ts @@ -192,11 +192,12 @@ export const useGQLQuery = < } else { args.variables = updatedVars } + nextTick(rerunQuery) + } else { + rerunQuery() } isPaused.value = false - - nextTick(rerunQuery) } const pause = () => {