feat(web/m7-364): mount QueueDrawer + esc handler + restore on bootstrap
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import type { LayoutLoad } from './$types';
|
||||
import { bootstrap } from '$lib/auth/store.svelte';
|
||||
import { bootstrap, user } from '$lib/auth/store.svelte';
|
||||
import { restoreQueue } from '$lib/player/store.svelte';
|
||||
|
||||
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);
|
||||
return {};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user