fix: don't call debounced restart too much

This commit is contained in:
Guillaume Chau
2023-08-29 00:04:40 +02:00
parent 500cc49e11
commit 1adf135a09
@@ -432,6 +432,7 @@ export function useQueryImpl<
}
function restart () {
if (!started || restarting) return
if (!isRestartDebounceSetup) updateRestartFn()
debouncedRestart()
}