From 16414cf2d847436091cadb4376f5beef7e6ced62 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 3 Oct 2023 14:25:52 -0700
Subject: feat(anime): no loading on increment

---
 src/lib/List/Template/AnimeListTemplate.svelte | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

(limited to 'src/lib/List/Template/AnimeListTemplate.svelte')

diff --git a/src/lib/List/Template/AnimeListTemplate.svelte b/src/lib/List/Template/AnimeListTemplate.svelte
index ed71a083..f2bd801d 100644
--- a/src/lib/List/Template/AnimeListTemplate.svelte
+++ b/src/lib/List/Template/AnimeListTemplate.svelte
@@ -17,12 +17,21 @@
 	export let completed = false;
 
 	let lastUpdatedMedia = -1;
+	let previousAnimeList: Media[] = [];
 </script>
 
 {#await animeLists}
-	<ListTitle custom={title} />
-
-	<ul><li>Loading ...</li></ul>
+	<CleanAnimeList
+		media={previousAnimeList}
+		{title}
+		bind:animeLists
+		{user}
+		{identity}
+		{endTime}
+		bind:lastUpdatedMedia
+		{completed}
+		bind:previousAnimeList
+	/>
 {:then media}
 	{@const cleanedMedia = cleanMedia(media, $settings.displayUnresolved)}
 
@@ -35,6 +44,7 @@
 		{endTime}
 		bind:lastUpdatedMedia
 		{completed}
+		bind:previousAnimeList
 	/>
 {:catch}
 	<ListTitle time={0} count={-1337} custom={title} />
-- 
cgit v1.2.3

