fix(web): clear svelte-check warnings and log playback failures

The seeded $state initialisers in PlaylistForm intentionally capture the
prop once; untrack() states that instead of tripping
state_referenced_locally. The player now logs the caught exception
rather than discarding it.
This commit is contained in:
2026-07-20 07:28:17 +02:00
parent 6f7ae9e5bb
commit c888c465d5
2 changed files with 5 additions and 3 deletions
@@ -1,4 +1,5 @@
<script lang="ts">
import { untrack } from 'svelte';
import { enhance } from '$app/forms';
import ImageDropzone from './ImageDropzone.svelte';
import Button from './Button.svelte';
@@ -33,8 +34,8 @@
onSuccess
}: Props = $props();
let name = $state(initialName);
let description = $state(initialDescription);
let name = $state(untrack(() => initialName));
let description = $state(untrack(() => initialDescription));
let submitting = $state(false);
</script>
+2 -1
View File
@@ -274,7 +274,8 @@ class PlayerState {
this.loading = false;
this.#retriedId = null;
this.#pushRecent(this.current);
} catch {
} catch (exception) {
console.error('playback failed', exception);
if (token !== this.#loadToken) return;
this.loading = false;
this.playing = false;