From 802c3f85d1577dc32d670542cb7d2fc4329008dd Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Sat, 28 Mar 2026 08:54:30 +0000
Subject: fix(state): restore persisted list UI state

---
 src/routes/+page.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/routes/+page.svelte')

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index f29e4ad5..268e9713 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -11,7 +11,7 @@ import Skeleton from "$lib/Loading/Skeleton.svelte";
 import locale from "$stores/locale.js";
 import Landing from "$lib/Landing.svelte";
 import LandingHero from "$lib/LandingHero.svelte";
-import stateBin from "$stores/stateBin.js";
+import stateBin, { hydrateStateBin } from "$stores/stateBin.js";
 import type { PageData } from "./$types";
 
 let { data }: { data: PageData } = $props();
@@ -63,8 +63,9 @@ const loadAuthenticatedHomeSurface = () => {
 	return authenticatedHomeSurfaceImport;
 };
 
-onMount(() => {
+onMount(async () => {
 	removeHeightObserver = createHeightObserver();
+	await hydrateStateBin();
 	$stateBin.upcomingAnimeListOpen ??= true;
 	$stateBin.dueMangaListOpen ??= true;
 	void loadAuthenticatedHomeSurface();
-- 
cgit v1.2.3

