Skip to content

Commit 2f0b319

Browse files
committed
fix(watcher): keep queued refresh during indexing
1 parent 7a9af7a commit 2f0b319

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/auto-refresh.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export function createAutoRefreshController(): AutoRefreshController {
2525
return true;
2626
},
2727
consumeQueuedRefresh: (indexStatus) => {
28+
if (indexStatus === 'indexing') {
29+
// Defensive: if called while indexing, do not clear the queue.
30+
return false;
31+
}
2832
const shouldRun = queued && indexStatus === 'ready';
2933
queued = false;
3034
return shouldRun;

0 commit comments

Comments
 (0)