refactor(confirm): use plain let for resolveRef instead of $state

resolveRef is never read reactively — it is only read synchronously
inside settle(). Using $state was misleading about the intent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-12 14:34:52 +02:00
parent 3a316bc382
commit 84378f11b4

View File

@@ -52,7 +52,7 @@ export interface ConfirmService {
}
export function createConfirmService(): ConfirmService {
let resolveRef: ((value: boolean) => void) | null = $state(null);
let resolveRef: ((value: boolean) => void) | null = null;
let options: ConfirmOptions | null = $state(null);
return {