Fix Svelte reactive state warnings and update gitignore
This commit is contained in:
parent
3cb21bf5cf
commit
2c3a4c3daa
2 changed files with 2 additions and 2 deletions
|
|
@ -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('');
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue