mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-03 03:33:16 +03:00
Fix broken debounce in update interval
- this broke the 15 minute auto-updating interval
This commit is contained in:
parent
26240ec190
commit
2a08b419ea
@ -87,13 +87,15 @@
|
||||
// don't use $effect.pre here.
|
||||
// TODO: can we eliminate the need to debounce?
|
||||
const fetch = $derived(fetchSignal.event);
|
||||
const debouncedBaseBranchResfresh = debounce(() => baseBranchService.refresh(), 500);
|
||||
$effect.pre(() => {
|
||||
if ($fetch || $head) debounce(() => baseBranchService.refresh(), 500);
|
||||
if ($fetch || $head) debouncedBaseBranchResfresh();
|
||||
});
|
||||
|
||||
// TODO: can we eliminate the need to debounce?
|
||||
const debouncedRemoteBranchRefresh = debounce(() => remoteBranchService.refresh(), 500);
|
||||
$effect.pre(() => {
|
||||
if ($baseBranch || $head || $fetch) debounce(() => remoteBranchService.refresh(), 500);
|
||||
if ($baseBranch || $head || $fetch) debouncedRemoteBranchRefresh();
|
||||
});
|
||||
|
||||
$effect.pre(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user