From 9d4a269d36715a6ec73960d536caf4b64a9fe47b Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 18 Jan 2026 00:58:26 -0600 Subject: [PATCH] feat(init): initialize playback context and preferences stores - Call initPlaybackContextStore() on app mount - Call initPlaybackPreferences() on app mount - Load backend state into frontend stores - Phase 3 backend + UI complete - Wiring for track actions pending (will be done per-page) cp --- src/routes/+page.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 713f9c670..af1d39da6 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -25,6 +25,10 @@ type Toast as ToastData } from '$lib/stores/toastStore'; + // Playback context and preferences + import { initPlaybackContextStore } from '$lib/stores/playbackContextStore'; + import { initPlaybackPreferences } from '$lib/stores/playbackPreferencesStore'; + // UI state management import { subscribe as subscribeUI, @@ -1579,6 +1583,10 @@ initDownloadStates(); startDownloadEventListeners(); + // Initialize playback context and preferences stores + initPlaybackContextStore(); + initPlaybackPreferences(); + // Note: loadFavorites() is called in handleLoginSuccess after login is confirmed // This prevents API calls before authentication is complete