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/completed/+page.svelte | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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

diff --git a/src/routes/completed/+page.svelte b/src/routes/completed/+page.svelte
index 220901bf..bcad912b 100644
--- a/src/routes/completed/+page.svelte
+++ b/src/routes/completed/+page.svelte
@@ -10,7 +10,7 @@ import { createHeightObserver } from "$lib/Utility/html.js";
 import Skeleton from "$lib/Loading/Skeleton.svelte";
 import locale from "$stores/locale.js";
 import Landing from "$lib/Landing.svelte";
-import stateBin from "$stores/stateBin.js";
+import stateBin, { hydrateStateBin } from "$stores/stateBin.js";
 import type { PageData } from "./$types";
 
 let { data }: { data: PageData } = $props();
@@ -53,8 +53,9 @@ const loadCompletedSurface = () => {
 	return completedSurfaceImport;
 };
 
-onMount(() => {
+onMount(async () => {
 	removeHeightObserver = createHeightObserver();
+	await hydrateStateBin();
 	$stateBin.completedAnimeListOpen ??= true;
 	$stateBin.completedMangaListOpen ??= true;
 	void loadCompletedSurface();
-- 
cgit v1.2.3

