Skip to content

Commit

Permalink
fix: don't call debounced restart too much
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 28, 2023
1 parent 500cc49 commit 1adf135
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vue-apollo-composable/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ export function useQueryImpl<
}

function restart () {
if (!started || restarting) return
if (!isRestartDebounceSetup) updateRestartFn()
debouncedRestart()
}
Expand Down

0 comments on commit 1adf135

Please sign in to comment.