import type { LayoutLoad } from './$types'; import { bootstrap, user } from '#lib/auth/store.svelte.js'; import { restoreQueue } from '#lib/player/store.svelte.js'; import { loadNormalization } from '#lib/stores/normalization.svelte.js'; export const ssr = false; // adapter-static fallback; we're SPA-only export const prerender = false; export const load: LayoutLoad = async () => { await bootstrap(); const userId = user.value?.id; if (userId) { restoreQueue(userId); // Not awaited: the cached preference levels playback until it lands. void loadNormalization(); } return {}; };