From 41b85c8758237c468f439a5191470bb0cd4dc9d4 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 4 Oct 2023 18:59:18 -0700
Subject: feat(anime): instantly reactive increment

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

(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 85e4f1dc..2a8bbdba 100644
--- a/src/lib/List/Template/AnimeListTemplate.svelte
+++ b/src/lib/List/Template/AnimeListTemplate.svelte
@@ -18,6 +18,7 @@
 
 	let lastUpdatedMedia = -1;
 	let previousAnimeList: Media[];
+	let pendingUpdate: number | null = null;
 </script>
 
 {#await animeLists}
@@ -33,6 +34,7 @@
 			{completed}
 			bind:previousAnimeList
 			disableIncrement
+			bind:pendingUpdate
 		/>
 	{:else}
 		<ListTitle custom={title} />
@@ -52,6 +54,7 @@
 		bind:lastUpdatedMedia
 		{completed}
 		bind:previousAnimeList
+		bind:pendingUpdate
 	/>
 {:catch}
 	<ListTitle time={0} count={-1337} custom={title} />
-- 
cgit v1.2.3

