Skip to content

Commit 9f08698

Browse files
justjuanguiclaude
andcommitted
fix(import): Add $state to fileInput for reactivity
Fix Svelte non_reactive_update warning by declaring fileInput with $state() since it's updated during component lifecycle. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d22aa67 commit 9f08698

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/ui/ImportDialog.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
4444
// Dialog ref
4545
let dialog: HTMLDialogElement;
46-
let fileInput: HTMLInputElement | null = null;
46+
let fileInput = $state<HTMLInputElement | null>(null);
4747
4848
// Import mode
4949
let importMode = $state<ImportMode>("file");

0 commit comments

Comments
 (0)