Fix Svelte reactive state warnings and update gitignore

This commit is contained in:
Christoph Haas 2026-03-22 00:04:41 +01:00
parent 3cb21bf5cf
commit 2c3a4c3daa
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
import { goto } from '$app/navigation';
import { onMount } from 'svelte';
let user: { email?: string; username?: string } | null = null;
let user: { email?: string; username?: string } | null = $state(null);
let oldPassword = $state('');
let newPassword = $state('');
let confirmPassword = $state('');

View file

@ -2,7 +2,7 @@
import { goto } from '$app/navigation';
import { onMount } from 'svelte';
let user: { email?: string; username?: string; quota?: number; role?: string } | null = null;
let user: { email?: string; username?: string; quota?: number; role?: string } | null = $state(null);
let loading = $state(true);
onMount(async () => {