refactor(search): runDebounced ohne missweisenden Parameter

Der _q-Parameter wurde nie benutzt — Consumer sollen stattdessen
store.query im \$effect lesen, dann runDebounced() callen. Weniger
Footgun, explizitere Call-Site.

Tests-Rename: "mid-flight" → "cleared/changed", beschreibt was der
Test tatsaechlich absichert.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-19 12:47:40 +02:00
parent fc47c78397
commit 4edddc38e3
2 changed files with 13 additions and 13 deletions

View File

@@ -52,7 +52,7 @@ export class SearchStore {
this.fetchImpl = opts.fetchImpl ?? ((...a) => fetch(...a));
}
runDebounced(_q: string): void {
runDebounced(): void {
if (this.debounceTimer) clearTimeout(this.debounceTimer);
if (this.skipNextDebounce) {
this.skipNextDebounce = false;