From 3b10a1f47fd5838fe3b94c19673a52610b88cf1e Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Sun, 1 Mar 2026 14:20:08 -0800
Subject: perf: optimise list hot paths and shared timers

---
 src/lib/List/CleanList.svelte | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/lib/List/CleanList.svelte')

diff --git a/src/lib/List/CleanList.svelte b/src/lib/List/CleanList.svelte
index 63656ab3..bf8c44ff 100644
--- a/src/lib/List/CleanList.svelte
+++ b/src/lib/List/CleanList.svelte
@@ -12,11 +12,11 @@
   export let lastUpdatedMedia: number;
   export let reverseSort = false;
 
-  $: processedMedia = reverseSort ? media.reverse() : media;
+  $: processedMedia = reverseSort ? [...media].reverse() : media;
 </script>
 
 <ul>
-  {#each processedMedia as title}
+  {#each processedMedia as title (title.id)}
     {@const progress = (title.mediaListEntry || { progress: 0 }).progress}
 
     {#if type === 'anime' ? upcoming || notYetReleased || progress !== (title.nextAiringEpisode?.episode || 9999) - 1 : progress !== title.episodes}
-- 
cgit v1.2.3

