diff --git a/materialious/src/routes/(app)/+layout.svelte b/materialious/src/routes/(app)/+layout.svelte
index 7782412d..eb88309f 100644
--- a/materialious/src/routes/(app)/+layout.svelte
+++ b/materialious/src/routes/(app)/+layout.svelte
@@ -2,7 +2,7 @@
import { resolve } from '$app/paths';
import { goto } from '$app/navigation';
- import { navigating, page } from '$app/stores';
+ import { navigating, page } from '$app/state';
import { getFeed, notificationsMarkAsRead } from '$lib/api/index';
import type { Notification } from '$lib/api/model';
import Logo from '$lib/components/Logo.svelte';
@@ -41,7 +41,7 @@
let mobileSearchShow = $state(false);
let notifications: Notification[] = $state([]);
- let playerIsPip: boolean = $state(false);
+ let playerIsPip = $state(false);
let showWatchParty = $state(false);
let pages = $state(getPages());
@@ -55,8 +55,8 @@
pages = getPages();
});
- page.subscribe((pageData) => {
- playerIsPip = !pageData.url.pathname.includes('/watch');
+ $effect(() => {
+ playerIsPip = !page.url.pathname.includes('/watch');
requestAnimationFrame(() => resetScroll());
});
@@ -170,13 +170,13 @@
{#if $isAndroidTvStore}
-
+
search
{$_('searchPlaceholder')}
{/if}
{#each pages as navPage (navPage)}
-
{navPage.icon}
{navPage.name}
@@ -296,7 +296,7 @@
{navPage.icon}
{navPage.name}
@@ -379,11 +379,12 @@
{/if}
- {#if $navigating}
+ {#await navigating.complete}