Skip to content

Commit 1adf135

Browse files
committed
fix: don't call debounced restart too much
1 parent 500cc49 commit 1adf135

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vue-apollo-composable/src/useQuery.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ export function useQueryImpl<
432432
}
433433

434434
function restart () {
435+
if (!started || restarting) return
435436
if (!isRestartDebounceSetup) updateRestartFn()
436437
debouncedRestart()
437438
}

0 commit comments

Comments
 (0)